]> git.ipfire.org Git - thirdparty/lldpd.git/blame - Makefile.am
build: add author name and commit hash in generated changelog
[thirdparty/lldpd.git] / Makefile.am
CommitLineData
4b292b55
VB
1include doxygen.am
2
2acc1418 3ACLOCAL_AMFLAGS = -I m4
4b292b55
VB
4
5SUBDIRS = src/compat src src/daemon src/lib src/client man tests
6EXTRA_DIST = $(DX_CONFIG)
e5c94652 7DIST_SUBDIRS = $(SUBDIRS) libevent
4b292b55 8
31093dd9
VB
9dist_doc_DATA = README.md NEWS
10
11# Build changelog from git history
12dist-hook: $(distdir)/ChangeLog
13$(distdir)/ChangeLog:
14 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:" ; \
20 echo "" ; \
ef9d4476 21 git log --pretty=' - [%h] %s (%an)' $$tag..$$prev ; \
31093dd9
VB
22 echo "" ; \
23 prev=$$tag ; \
24 done > $@ ; \
25 fi
4b292b55
VB
26
27MOSTLYCLEANFILES = $(DX_CLEANFILES)