aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 565864880be2ff68872c7c9c6275d27ef286148c (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
27
28
29
30
31
32
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 kuchenstand.js
PHP := index.php lade_daten.php config.php kuchenstand.php
CSS := index.css punktestand.css kuchenstand.css
IMGS := img/kuchen.png

.PHONY: all
all: dist/js dist/php dist/css dist/img

dist:
	mkdir -p $@

dist/js: $(JS) dist
	mkdir -p $@
	for js in $(JS); do cp $$js $@; done

dist/img: $(IMGS) dist
	mkdir -p $@
	for img in $(IMGS); do cp $$img $@; done

.PHONY: dist/php
dist/php: $(PHP) dist
	for php in $(PHP); do cp $$php ${@D}; done

.PHONY: dist/css
dist/css: $(CSS) dist
	for css in $(CSS); do cp $$css ${@D}; done

.PHONY: clean
clean:
	rm -rf dist