Update OAuth instructions on README.Debian.
[debian/bti.git] / Makefile.am
1 bin_PROGRAMS = \
2         bti
3
4 bin_SCRIPTS = \
5         bti-shrink-urls
6
7 bti_SOURCES = \
8         bti.h \
9         config.c \
10         bti.c
11
12 bti_CFLAGS = \
13         $(LIBCURL_CFLAGS) \
14         $(XML_CFLAGS) \
15         $(JSON_CFLAGS) \
16         $(LIBPCRE_CFLAGS) \
17         $(LIBOAUTH_CFLAGS)
18
19 bti_LDADD = \
20         $(LIBCURL_LIBS) \
21         $(XML_LIBS) \
22         $(JSON_LIBS) \
23         $(LIBPCRE_LIBS) \
24         $(LIBOAUTH_LIBS)
25
26 dist_man_MANS = \
27         bti.1 \
28         bti-shrink-urls.1
29
30 EXTRA_DIST = \
31         bti.xml \
32         bti-shrink-urls.xml \
33         bti.example \
34         bti-bashcompletion \
35         RELEASE-NOTES \
36         bti-shrink-urls
37
38 %.1: %.xml
39         $(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
40
41 MAINTAINERCLEANFILES = \
42         $(dist_man_MANS)
43
44 git-clean:
45         rm -f Makefile.in
46
47 distclean-local:
48         rm -rf autom4te.cache
49
50 PREVIOUS_VERSION = 0`expr $(VERSION) - 1`
51
52 changelog:
53         @ head -1 ChangeLog | grep -q "to v$(PREVIOUS_VERSION)"
54         @ mv ChangeLog ChangeLog.tmp
55         @ echo "Summary of changes from v$(PREVIOUS_VERSION) to v$(VERSION)" >> ChangeLog
56         @ echo "============================================" >> ChangeLog
57         @ echo >> ChangeLog
58         @ git log --pretty=short $(PREVIOUS_VERSION)..HEAD | git shortlog  >> ChangeLog
59         @ echo >> ChangeLog
60         @ cat ChangeLog
61         @ cat ChangeLog.tmp >> ChangeLog
62         @ rm ChangeLog.tmp
63
64 git-release:
65         head -1 ChangeLog | grep -q "to v$(VERSION)"
66         head -1 RELEASE-NOTES | grep -q "bti $(VERSION)"
67         git commit -a -m "release $(VERSION)"
68         cat .git/refs/heads/master > .git/refs/tags/$(VERSION)
69         git gc
70         git prune
71
72 AUTOMAKE_OPTIONS = foreign