]> git.ipfire.org Git - thirdparty/lldpd.git/blob - Makefile.am
doc: fix doxygen warnings and don't parse include/linux
[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
7 DIST_SUBDIRS = $(SUBDIRS) libevent
8
9 dist_doc_DATA = README.md NEWS
10 doc_DATA = ChangeLog
11 # If not present, just ship an empty one
12 ChangeLog:
13 touch $@
14
15 # Build changelog from git history
16 dist-hook: $(distdir)/ChangeLog
17 $(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 ; \
23 echo "$$prev:" ; \
24 echo "" ; \
25 git log --pretty=' - [%h] %s (%an)' $$tag..$$prev ; \
26 echo "" ; \
27 prev=$$tag ; \
28 done > $@ ; \
29 fi
30
31 MOSTLYCLEANFILES = $(DX_CLEANFILES)