-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
90 lines (52 loc) · 1.63 KB
/
Makefile.in
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
all:
for dir in src examples; do (cd $$dir && $(MAKE)); done
docs:
(cd doc && $(MAKE))
test:
(cd tests && $(MAKE))
clean:
for dir in doc src examples; \
do (cd $$dir && $(MAKE) clean); done
install:
umask 022
(cd src && $(MAKE) install)
distclean: clean
rm -rf config.log config.status config.h autom4te.cache >/dev/null 2>&1
find . -name Makefile -exec rm -f {} \;
find . -name \*~ -exec rm -f {} \;
find . -name \*.bak -exec rm -f {} \;
indent:
find src examples -name \*.c -exec indent -gnu {} \;
find src examples -name \*.h -exec indent -gnu {} \;
release: all docs indent distclean
BASEURL = https://www.unece.org/fileadmin/DAM/trade/untdid
directories: 92-1.xml d97a.xml d96a.xml
88-1.zip:
test -f $@ || wget $(BASEURL)/d88/$@
90-1.zip:
test -f $@ || wget $(BASEURL)/d90/$@
90-2.zip:
test -f $@ || wget $(BASEURL)/d90/$@
91-1.zip:
test -f $@ || wget $(BASEURL)/d91/$@
91-2.zip:
test -f $@ || wget $(BASEURL)/d91/$@
92-1.zip:
test -f $@ || wget $(BASEURL)/d92/$@
93-2.zip:
test -f $@ || wget $(BASEURL)/d93/$@
d93a.zip:
test -f $@ || wget $(BASEURL)/d93/$@
s93a.zip:
test -f $@ || wget $(BASEURL)/d93/$@
%.zip:
test -f $@ || wget $(BASEURL)/$*/$@
%.xml: %.zip
test -d $* || util/unzipdirs $*.zip
util/untd2t $* > $*.xml
dirclean:
rm -rf *.zip *.xml d??a d??b d??c 93-2 s93a 92-1 91-1 91-2 90-1 90-2 88-1
# d16a d16b d15a d15b d14a d14b d13a d13b d12a d12b d11a d11b d10a d10b
# d09a d09b d08a d08b d07a d07b d06a d06b d05a d05b d04a d04b d03a d03b
# d02a d02b d01a d01b d01c d00a d00b d99a d99b d98a d98b d97a d97b d96a
# d96b d95a d95b d94a d94b d93a 93-2 s93a 92-1 91-1 91-2 90-1 90-2 88-1