forked from gregkh/bti
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
82 lines (66 loc) · 1.57 KB
/
Makefile.am
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
#build iniparser first
SUBDIRS=iniparser-2.17
INIPARSER_CFLAGS=-I$(SUBDIRS)/src/
INIPARSER_LIBS = $(SUBDIRS)/libiniparser.a
bin_PROGRAMS = \
bti
bin_SCRIPTS = \
bti-shrink-urls
bti_SOURCES = \
bti.c\
bti.h\
account.h\
parseini.c\
my_oauth.c\
my_oauth.h\
sina.c\
twitter.c
bti_CFLAGS = \
$(XML_CFLAGS) \
$(LIBPCRE_CFLAGS) \
$(LIBOAUTH_CFLAGS) \
$(INIPARSER_CFLAGS)
bti_LDADD = \
$(XML_LIBS) \
$(LIBPCRE_LIBS) \
$(INIPARSER_LIBS) \
$(LIBOAUTH_LIBS) \
-ldl
dist_man_MANS = \
bti.1 \
bti-shrink-urls.1
EXTRA_DIST = \
bti.xml \
bti-shrink-urls.xml \
bti.example \
bti-bashcompletion \
RELEASE-NOTES \
bti-shrink-urls
%.1: %.xml
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
MAINTAINERCLEANFILES = \
$(dist_man_MANS)
git-clean:
rm -f Makefile.in
distclean-local:
rm -rf autom4te.cache
PREVIOUS_VERSION = 0`expr $(VERSION) - 1`
changelog:
@ head -1 ChangeLog | grep -q "to v$(PREVIOUS_VERSION)"
@ mv ChangeLog ChangeLog.tmp
@ echo "Summary of changes from v$(PREVIOUS_VERSION) to v$(VERSION)" >> ChangeLog
@ echo "============================================" >> ChangeLog
@ echo >> ChangeLog
@ git log --pretty=short $(PREVIOUS_VERSION)..HEAD | git shortlog >> ChangeLog
@ echo >> ChangeLog
@ cat ChangeLog
@ cat ChangeLog.tmp >> ChangeLog
@ rm ChangeLog.tmp
git-release:
head -1 ChangeLog | grep -q "to v$(VERSION)"
head -1 RELEASE-NOTES | grep -q "bti $(VERSION)"
git commit -a -m "release $(VERSION)"
cat .git/refs/heads/master > .git/refs/tags/$(VERSION)
git gc
git prune
AUTOMAKE_OPTIONS = foreign