1 doc_DATA = doxygen-build.stamp 2 3 EXTRA_DIST = Doxyfile.in 4 5 if HAVE_DOXYGEN 6 doxygen-build.stamp: Doxyfile 7 doxygen 8 touch doxygen-build.stamp 9 else 10 doxygen-build.stamp: 11 echo "*** Warning: Doxygen not found; documentation will not be built." 12 touch doxygen-build.stamp 13 endif 14 15 dist_docdir = $(distdir)/libnestegg 16 17 dist-hook: 18 if test -d html; then \ 19 mkdir $(dist_docdir); \ 20 echo -n "copying built documenation..."; \ 21 cp -rp html $(dist_docdir)/html; \ 22 echo "OK"; \ 23 fi 24 25 26 install-data-local: doxygen-build.stamp 27 $(mkinstalldirs) $(DESTDIR)$(docdir) 28 if test -d html; then \ 29 cp -rp html $(DESTDIR)$(docdir)/html; \ 30 fi 31 32 uninstall-local: 33 rm -rf $(DESTDIR)$(docdir) 34 35 clean-local: 36 if test -d html; then rm -rf html; fi 37 if test -f doxygen-build.stamp; then rm -f doxygen-build.stamp; fi 38 39