blob: f07d611bfae2002c44e9c04c6d911ca6aaadee14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
JS := node_modules/chart.js/dist/chart.umd.js node_modules/chart.js/dist/chart.umd.js.map \
node_modules/chartjs-plugin-annotation/dist/chartjs-plugin-annotation.min.js \
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
|