Add a ChangeLog to the compiled Perl script
[dowkd.git] / Makefile
blob1e57a622ecabcefaae580ac5a91a21b548074a90
1 BLACKLIST_FILES := data/DSA-1024 data/RSA-2048 \
2 data/OpenVPN-64-LE data/OpenVPN-32-LE \
3 $(wildcard data/OpenSSH-*-LE) \
4 $(wildcard data/OpenSSL-*-LE)
6 export LC_ALL=C
8 .PHONY: all force
10 all: dowkd
12 dowkd: dowkd.in dowkd.blacklist dowkd.blacklist.md5 ChangeLog force
13 -rm $@ 2> /dev/null || true
14 perl -c dowkd.in
15 bash dowkd.compile
17 dowkd.blacklist: $(BLACKLIST_FILES)
18 -rm $@ 2> /dev/null || true
19 sort -u $(BLACKLIST_FILES) -o $@
21 dowkd.blacklist.md5: dowkd.blacklist
22 -rm $@ 2> /dev/null || true
23 md5sum $^ | awk '{print $$1}' > $@
25 # Generate the ChangeLog from the GIT metadata
26 ChangeLog : force
27 -rm $@ 2> /dev/null || true
28 git log --pretty=oneline | while read sha text ; do \
29 t=$$(git describe "$$sha" --exact-match --match 'v[0-9]*' 2>/dev/null) ; \
30 test -z "$$t" || echo "$$t" ; \
31 echo " $$text" ; \
32 done > $@
34 force: