From bc7b48f1d8321dc01d448cdeda025acf19e58e71 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 7 Sep 2025 16:24:04 +0200 Subject: initial commit --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3e08eda --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +JS := node_modules/chart.js/dist/chart.umd.js node_modules/chart.js/dist/chart.umd.js.map index.js +PHP := index.php lade_daten.php config.php +CSS := index.css + +.PHONY: all +all: dist/js dist/php dist/index.css + +dist: + mkdir -p $@ + +dist/js: $(JS) dist + mkdir -p $@ + for js in $(JS); do cp $$js $@; done + +.PHONY: dist/php +dist/php: $(PHP) dist + for php in $(PHP); do cp $$php ${@D}; done + +dist/index.css: index.css + cp $< $@ + +.PHONY: clean +clean: + rm -rf dist -- cgit v1.2.3