start repo, add "include" example

This commit is contained in:
Alexander Mahr 2024-12-28 14:35:15 +01:00
commit 8b8f1898ef
3 changed files with 28 additions and 0 deletions

2
01.includes/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/Makefile.includes
/file

15
01.includes/Makefile Normal file
View file

@ -0,0 +1,15 @@
# 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

11
README.md Normal file
View file

@ -0,0 +1,11 @@
# Makefile related adventures
Makefiles and the `make` program are a tool from the very early
days of computing (early unix days). While in principle based on
a simple list of "recipes" to "`make`", numerous versions or "flavours"
exists of `make`.
This repo attempts to store some of the "test" run to dertermine
stuff and have some examples