Install bti-shrink-urls properly
[gregoa/bti.git] / Makefile.am
1 bin_PROGRAMS = \
2         bti
3
4 bin_SCRIPTS = \
5         bti-shrink-urls
6
7 bti_SOURCES = \
8         bti.c
9
10 dist_man_MANS = \
11         bti.1 \
12         bti-shrink-urls.1
13
14 EXTRA_DIST = \
15         bti.xml \
16         bti-shrink-urls.xml \
17         bti.example \
18         bti-bashcompletion \
19         RELEASE-NOTES
20
21 %.1: %.xml
22         $(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
23
24 MAINTAINERCLEANFILES = \
25         $(dist_man_MANS)
26
27 git-clean:
28         rm -f Makefile.in
29
30 distclean-local:
31         rm -rf autom4te.cache
32
33 PREVIOUS_VERSION = 0`expr $(VERSION) - 1`
34
35 changelog:
36         @ head -1 ChangeLog | grep -q "to v$(PREVIOUS_VERSION)"
37         @ mv ChangeLog ChangeLog.tmp
38         @ echo "Summary of changes from v$(PREVIOUS_VERSION) to v$(VERSION)" >> ChangeLog
39         @ echo "============================================" >> ChangeLog
40         @ echo >> ChangeLog
41         @ git log --pretty=short $(PREVIOUS_VERSION)..HEAD | git shortlog  >> ChangeLog
42         @ echo >> ChangeLog
43         @ cat ChangeLog
44         @ cat ChangeLog.tmp >> ChangeLog
45         @ rm ChangeLog.tmp
46
47 git-release:
48         head -1 ChangeLog | grep -q "to v$(VERSION)"
49         head -1 RELEASE-NOTES | grep -q "bti $(VERSION)"
50         git commit -a -m "release $(VERSION)"
51         cat .git/refs/heads/master > .git/refs/tags/$(VERSION)
52         git gc
53         git prune
54
55 AUTOMAKE_OPTIONS = foreign