]> git.ipfire.org Git - thirdparty/lldpd.git/blob - Makefile.am
dist: provide a complete changelog
[thirdparty/lldpd.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2 SUBDIRS = src man tests
3 DIST_SUBDIRS = $(SUBDIRS) libevent
4 dist_doc_DATA = README.md NEWS
5
6 # Build changelog from git history
7 dist-hook: $(distdir)/ChangeLog
8 $(distdir)/ChangeLog:
9 if test -d $(top_srcdir)/.git; then \
10 prev=$$(git describe --tags --always --match [0-9]* 2> /dev/null) ; \
11 for tag in $$(git tag | grep -E '^[0-9]+(\.[0-9]+){1,}$$' | sort -rn); do \
12 if [ x"$$prev" = x ]; then prev=$$tag ; fi ; \
13 if [ x"$$prev" = x"$$tag" ]; then continue; fi ; \
14 echo "$$prev:" ; \
15 echo "" ; \
16 git log --pretty=' - %s' $$tag..$$prev ; \
17 echo "" ; \
18 prev=$$tag ; \
19 done > $@ ; \
20 fi