]> git.ipfire.org Git - thirdparty/lldpd.git/blob - Makefile.am
build: use the same way as libbsd for version and changelog
[thirdparty/lldpd.git] / Makefile.am
1 include doxygen.am
2
3 ACLOCAL_AMFLAGS = -I m4
4
5 SUBDIRS = src/compat src src/daemon src/lib src/client tests
6 EXTRA_DIST = $(DX_CONFIG) include get-version
7 DIST_SUBDIRS = $(SUBDIRS) libevent
8 DISTCLEANFILES = ChangeLog
9
10 dist_doc_DATA = README.md NEWS
11
12 __force-changelog-generation:
13 ChangeLog: __force-changelog-generation
14 $(AM_V_GEN)if test -d $(top_srcdir)/.git; then \
15 prev=$$(git describe --tags --always --match '[0-9]*' 2> /dev/null) ; \
16 for tag in $$(git tag | grep -E '^[0-9]+(\.[0-9]+){1,}$$' | sort -rn); do \
17 if [ x"$$prev" = x ]; then prev=$$tag ; fi ; \
18 if [ x"$$prev" = x"$$tag" ]; then continue; fi ; \
19 echo "$$prev [$$(git log $$prev -1 --pretty=format:'%ai')]:" ; \
20 echo "" ; \
21 git log --pretty=' - [%h] %s (%an)' $$tag..$$prev ; \
22 echo "" ; \
23 prev=$$tag ; \
24 done > $@ ; \
25 else \
26 touch $@ ; \
27 fi
28
29 dist-hook:
30 echo $(VERSION) > $(distdir)/.dist-version
31
32 MOSTLYCLEANFILES = $(DX_CLEANFILES)