make quick reference guide Command flags ------------- -b Compatibility mode for old makefiles. -e Environment variables override assignments. -f Use for makefile. -i Ignore all errors. -k Keep going even after detecting an error. -n Don't actually execute. -p Print complete set of macro definitions and target descriptions. -q Query and return 0 if up-to-date. -r Remove built-in rules. -s Do not echo commands. -t Just touch targets. VAR=value Set the value of variable VAR. Makefile Search Order --------------------- ./makefile ./Makefile ./s.makefile ./s.Makefile Dependency operators -------------------- : Set dependency for target to source. Can accumulate over multiple lines. Preprocess characters --------------------- - Ignore errors for this shell line. @ Do not print this line. Variable definitions -------------------- = Set to . Predefined local variables -------------------------- $@ Name of the target. $? List of sources that were out of date. $* File portion of the current dependent being processed. $< Implied source file for this target (if none provided). $% The path to an archive file. $@F File portion of target file. $[:=[]]) Substitutes at the end of a word are replaced with . Special make commands ---------------------- include Include from current directory. Target attributes : ----------------- .DEFAULT Performed if make can't figure out how to make a particular target. .IGNORE Ignore errors from target's commands. .PRECIOUS Do not delete target if pmake is interrupted. .SILENT Do not echo script. .SUFFIXES Defines the suffixes that make should recognize. Special targets --------------- Files of interest ----------------- /usr/include/make/commondefs /usr/include/make/commonrules /usr/include/make/defs