|
target
|
Select the target to run
|
|
-f file
|
Select which file to read
|
|
-W file
|
Mark file as 'out of date'
|
|
-C
|
Change directory before making
|
|
-d
|
Print all debug information
|
|
-n
|
Print actions without making
|
|
-t
|
Mark encountered targets as 'up of date'
|
|
-p
|
Expand makefile and print
|
|
-b
|
Consider all targets as 'out-of-date'
|
|
$@
|
Name of the target of the recipe being run*
|
|
$%
|
The target member name, when the target is an archive member*
|
|
$<
|
Name of first prerequisite
|
|
$?
|
Names of prerequisites newer than the target
|
|
$^
|
Names of all prerequisites
|
|
$*
|
Name of the stem
|
|
Syntax: $(function arguments)
|
|
|
$(subst from,to,text)
|
|
|
Substitute substring from to to in text
|
|
|
$(patsubst pat,repl,text)
|
|
|
Text substitutions using pattern pat in text
|
|
|
$(text:pat=repl)
|
|
|
Same effect as patsubst, but in different form
|
|
|
$(strip string)
|
|
|
Strip leading and trailing spaces from string
|
|
|
$(findstring find,strings)
|
|
|
Tries to find occurence of find in strings. Returns 'find' if successful, else it returns ''
|
|
|
$(filter patterns,text)
|
|
|
Returns words in text that match patterns
|
|
|
$(filter-out pattern...,text)
|
|
|
Returns words in text that DO NOT match patterns
|
|
|
$(sort list)
|
|
|
Sort list list of strings in alfabetical order
|
|
|
$(word n,text)
|
|
|
Return the nth word in text
|
|
|
$(wordlist s,e,text)
|
|
|
Return sublist of words list text starting at index s and ending at index e
|
|
|
$(words text)
|
|
|
Returns the number of words in text
|
|
|
$(firstword text)
|
|
|
Returns the first word in text
|
|
|
$(lastword text)
|
|
|
Returns the last word in text
|
|
var = $(shell ls)var := $(shell ls)var ::= $(shell ls)var ?= $(shell ls)var += $(shell ls)var != lsCheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.