-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
43 lines (37 loc) · 931 Bytes
/
Makefile
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
33
34
35
36
37
38
39
40
41
42
43
BVINPUT = BV.txt
INPUT = \
LV-BB.txt \
LV-BE.txt \
LV-BW.txt \
LV-BY.txt \
LV-HB.txt \
LV-HE.txt \
LV-HH.txt \
LV-LSA.txt \
LV-MV.txt \
LV-NDS.txt \
LV-NRW.txt \
LV-RP.txt \
LV-SH.txt \
LV-SL.txt \
LV-SN.txt \
LV-TH.txt \
OUTSIDE.txt
DATEFILES = \
ltw.txt \
btw.txt \
euw.txt \
bpt.txt
Mitgliederentwicklung-nach-LVs.png: output-tmp.png
pngcrush -brute -l 9 "$<" "$@"
output-tmp.png: mitglieder.csv plotscript
gnuplot plotscript
mitglieder.csv: $(INPUT) plot-stacked.rb sort.rb Makefile
./plot-stacked.rb `./sort.rb $(INPUT)` > $@
plotscript: $(BVINPUT) $(INPUT) mitglieder.csv plot-script.rb sort.rb Makefile $(DATEFILES)
./plot-script.rb `awk '{ d = $$1; if (m < $$18) m = $$18 }; END { print m, d }' mitglieder.csv` $(BVINPUT) `./sort.rb $(INPUT)` > $@
.PHONY: diff clean
diff:
netstiff -W netstiff update
clean:
$(RM) plotscript mitglieder.csv Mitgliederentwicklung-nach-LVs.png output-tmp.png