]> git.ipfire.org Git - people/ms/strongswan.git/blobdiff - Makefile.am
apidoc: Conditionally run doxygen if any header/Markdown files have changed
[people/ms/strongswan.git] / Makefile.am
index bea4ba7c0290e2041f007fa6a5500c8a9fea55b2..f9e6452a2c10862a7074fa26eabe3f884e525b3f 100644 (file)
@@ -38,7 +38,9 @@ Doxyfile :    Doxyfile.in
                $(srcdir)/$@.in > $@
 
 apidoc :       Doxyfile
-               doxygen
+               @test -d apidoc || doxygen
+               @! find Doxyfile src/ -name '*.h' -o -name '*.md' , -newer apidoc | \
+                       grep -q '' || doxygen && touch apidoc
 
 cov-reset-common:
                @rm -rf $(top_builddir)/coverage
@@ -75,4 +77,4 @@ clean-local: cov-reset-common
                @find $(top_builddir)/src $(top_builddir)/scripts -name "*.gcno" -delete
                @rm -rf apidoc
 
-.PHONY: cov-reset-common cov-reset cov-report coverage
+.PHONY: cov-reset-common cov-reset cov-report coverage apidoc