aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-09-07 16:24:04 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-09-07 16:24:04 +0200
commitbc7b48f1d8321dc01d448cdeda025acf19e58e71 (patch)
tree3682b9b2abf6c60f44d80f1666624ee6efb082ca /Makefile
downloadpunktestand-bc7b48f1d8321dc01d448cdeda025acf19e58e71.tar.gz
punktestand-bc7b48f1d8321dc01d448cdeda025acf19e58e71.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
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