3 ACLOCAL_AMFLAGS = -I m4
5 SUBDIRS = src/compat src src/daemon src/lib src/client tests
6 EXTRA_DIST = $(DX_CONFIG) include
7 DIST_SUBDIRS = $(SUBDIRS) libevent
9 dist_doc_DATA = README.md NEWS
11 # If not present, just ship an empty one
15 # Build changelog from git history
16 dist-hook: $(distdir)/ChangeLog
18 if test -d $(top_srcdir)/.git; then \
19 prev=$$(git describe --tags --always --match [0-9]* 2> /dev/null) ; \
20 for tag in $$(git tag | grep -E '^[0-9]+(\.[0-9]+){1,}$$' | sort -rn); do \
21 if [ x"$$prev" = x ]; then prev=$$tag ; fi ; \
22 if [ x"$$prev" = x"$$tag" ]; then continue; fi ; \
25 git log --pretty=' - [%h] %s (%an)' $$tag..$$prev ; \
31 MOSTLYCLEANFILES = $(DX_CLEANFILES)