From 8b8f1898ef3f3caf76430750c610b9df190c4bb4 Mon Sep 17 00:00:00 2001 From: Alexander Mahr Date: Sat, 28 Dec 2024 14:35:15 +0100 Subject: [PATCH] start repo, add "include" example --- 01.includes/.gitignore | 2 ++ 01.includes/Makefile | 15 +++++++++++++++ README.md | 11 +++++++++++ 3 files changed, 28 insertions(+) create mode 100644 01.includes/.gitignore create mode 100644 01.includes/Makefile create mode 100644 README.md diff --git a/01.includes/.gitignore b/01.includes/.gitignore new file mode 100644 index 0000000..d6dea46 --- /dev/null +++ b/01.includes/.gitignore @@ -0,0 +1,2 @@ +/Makefile.includes +/file diff --git a/01.includes/Makefile b/01.includes/Makefile new file mode 100644 index 0000000..8050de9 --- /dev/null +++ b/01.includes/Makefile @@ -0,0 +1,15 @@ +# purpose of this example is to +# demonstrate the "include" functionality of `make` +# via the syntax "include " 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 + diff --git a/README.md b/README.md new file mode 100644 index 0000000..9a624a0 --- /dev/null +++ b/README.md @@ -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 + +