shithub: libvpx

ref: 9c44ce9f4bef9f3f4f7201d60c3f1b61b62256ae
dir: /nestegg/docs/Makefile.am/

View raw version
doc_DATA = doxygen-build.stamp

EXTRA_DIST = Doxyfile.in

if HAVE_DOXYGEN
doxygen-build.stamp: Doxyfile
	doxygen
	touch doxygen-build.stamp
else
doxygen-build.stamp:
	echo "*** Warning: Doxygen not found; documentation will not be built."
	touch doxygen-build.stamp
endif

dist_docdir = $(distdir)/libnestegg

dist-hook:
	if test -d html; then \
	  mkdir $(dist_docdir); \
	  echo -n "copying built documenation..."; \
	  cp -rp html $(dist_docdir)/html; \
	  echo "OK"; \
	fi


install-data-local: doxygen-build.stamp
	$(mkinstalldirs) $(DESTDIR)$(docdir)
	if test -d html; then \
	  cp -rp html $(DESTDIR)$(docdir)/html; \
	fi

uninstall-local:
	rm -rf $(DESTDIR)$(docdir)

clean-local:
	if test -d html; then rm -rf html; fi
	if test -f doxygen-build.stamp; then rm -f doxygen-build.stamp; fi