1 ACLOCAL_AMFLAGS = -I m4
2 SUBDIRS = src man tests
3 DIST_SUBDIRS = $(SUBDIRS) libevent
4 dist_doc_DATA = README.md NEWS
6 # Build changelog from git history
7 dist-hook: $(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 ; \
16 git log --pretty=' - %s' $$tag..$$prev ; \