From b796e3bd8da504afa2bad17ad0c4b0d620fe1025 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Tue, 15 Oct 2019 21:01:52 +0200 Subject: Automate building of doc both from GIT and dist tarball From both GIT and dist tarball: - Build html and man automatically if enabled and doxygen is available - Install html and man if enabled and built successfully, skip otherwise Signed-off-by: Joachim Nilsson --- doc/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/Makefile.am') diff --git a/doc/Makefile.am b/doc/Makefile.am index 255c143..203497e 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -7,6 +7,11 @@ DISTCLEANFILES = libnet.tag if ENABLE_HTML pkgdata_DATA = html/* +all-local: doc + clean-local: -rm -rf html + +doc: + $(MAKE) -C @top_builddir@ $@ endif -- cgit v1.2.1