debian/copyright: add new additional copyright holder.
[debian/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         bti-shrink-urls
21
22 %.1: %.xml
23         $(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
24
25 MAINTAINERCLEANFILES = \
26         $(dist_man_MANS)
27
28 git-clean:
29         rm -f Makefile.in
30
31 distclean-local:
32         rm -rf autom4te.cache
33
34 PREVIOUS_VERSION = 0`expr $(VERSION) - 1`
35
36 changelog:
37         @ head -1 ChangeLog | grep -q "to v$(PREVIOUS_VERSION)"
38         @ mv ChangeLog ChangeLog.tmp
39         @ echo "Summary of changes from v$(PREVIOUS_VERSION) to v$(VERSION)" >> ChangeLog
40         @ echo "============================================" >> ChangeLog
41         @ echo >> ChangeLog
42         @ git log --pretty=short $(PREVIOUS_VERSION)..HEAD | git shortlog  >> ChangeLog
43         @ echo >> ChangeLog
44         @ cat ChangeLog
45         @ cat ChangeLog.tmp >> ChangeLog
46         @ rm ChangeLog.tmp
47
48 git-release:
49         head -1 ChangeLog | grep -q "to v$(VERSION)"
50         head -1 RELEASE-NOTES | grep -q "bti $(VERSION)"
51         git commit -a -m "release $(VERSION)"
52         cat .git/refs/heads/master > .git/refs/tags/$(VERSION)
53         git gc
54         git prune
55
56 AUTOMAKE_OPTIONS = foreign