make imports all exported bash variables, such as $(PATH)
to have a variable imported without export: make myCmdVar=myCmdVarVal myTarget
to define var in makefile: makeVarDefer = makeVarDeferValue or makeVarImm := $(shell echo makeVarVal)
to reference: from
make function: $(info info: makeVar = $(makeVar)
make directives: ifeq ($(makeVar),) ifdef makeVar
recipe: echo $(makeVar)

Notes:
indentation: recipe start tab char
recipe calling bash var: on same line: bashVar=bashVarVal; echo bashVar = $$bashVar

download at: http://riowing.net/p/wp/makefileWp including instructions


This free site is ad-supported. Learn more