aboutsummaryrefslogtreecommitdiff
path: root/templates/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-05-07 17:29:27 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-05-07 17:29:27 +0200
commit96ad15696476a984dc723ca6efff1d15dceb6539 (patch)
tree81f2a07a0694ad254be58ee23332b49d86d8c049 /templates/Makefile
parent28c1364820e3758c3af45e5d8b0d75f7b8cf60a3 (diff)
downloadunterricht-96ad15696476a984dc723ca6efff1d15dceb6539.tar.gz
unterricht-96ad15696476a984dc723ca6efff1d15dceb6539.zip
add special Makefile template
Diffstat (limited to 'templates/Makefile')
-rw-r--r--templates/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/Makefile b/templates/Makefile
new file mode 100644
index 00000000..9017ea47
--- /dev/null
+++ b/templates/Makefile
@@ -0,0 +1,3 @@
+# Include the top level common.mk file
+COMMON_MK = $(shell bash -c 'upfind() { [[ -f "$$1" ]] && printf "$$1" || ([ "$$(realpath $$(dirname "$$1"))" == "/" ] || upfind "../$$1") }; upfind common.mk')
+include $(COMMON_MK)