15 lines
576 B
Makefile
15 lines
576 B
Makefile
# purpose of this example is to
|
|
# demonstrate the "include" functionality of `make`
|
|
# via the syntax "include <filename>" content of another file (also
|
|
# Makefile syntax, i.e recipies-rules and Variables) can be include
|
|
|
|
include Makefile.includes
|
|
|
|
|
|
# the included file can also be the "outcome" from another rule
|
|
# in the file that is doing the 'include'ing itself
|
|
# in this case the `make` will restart the invokation "once more" anew
|
|
Makefile.includes:
|
|
# this does generate a simple recipe to "touch create a `file`"
|
|
printf 'file:\n\ttouch file\n' > Makefile.includes
|
|
|