-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile.am
62 lines (54 loc) · 1.27 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
#
# Makefile.am
#
# Written by: Francesco Salvestrini <f DOT salvestrini AT nextworks DOT it>
#
ACLOCAL_AMFLAGS = -I m4
DISTCLEANFILES =
MAINTAINERCLEANFILES =
BUILT_SOURCES =
DISTCHECK_CONFIGURE_FLAGS =
SUBDIRS = \
src \
doc
EXTRA_DIST = \
bootstrap \
build-aux/git-version-gen \
build-aux/gitlog-to-changelog \
LICENSE \
LICENSE-tclap \
INSTALL \
README
.PHONY: AUTHORS
AUTHORS:
$(GIT) log --format="%aN <%aE>" | $(SORT) | $(UNIQ) > AUTHORS || { \
rm -f AUTHORS ; \
exit 1 ; \
}
EXTRA_DIST += AUTHORS
DISTCLEANFILES += AUTHORS
.PHONY: ChangeLog
ChangeLog:
$(srcdir)/build-aux/gitlog-to-changelog \
--amend=$(srcdir)/.changelog-amend | \
$(FMT) -u > ChangeLog || { \
rm -f ChangeLog ; \
exit 1 ; \
}
EXTRA_DIST += ChangeLog .changelog-amend
DISTCLEANFILES += ChangeLog
.PHONY: NEWS
NEWS:
$(GIT) tag -l -n1 | \
$(SORT) -V | \
$(SED) -e 's,Version[ \\t]\+bump[ \\t]\+(\(.*\)),\1,' > NEWS || { \
rm -f NEWS ; \
exit 1 ; \
}
EXTRA_DIST += NEWS
DISTCLEANFILES += NEWS
$(top_srcdir)/.version:
echo $(VERSION) > $@-t && mv $@-t $@
BUILT_SOURCES += $(top_srcdir)/.version
dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version