SUBDIRS = api old_EXTRA_DIST = DAEMON build_OS2.txt \ camlib_devel.lyx \ camlib_devel-portmon.eps camlib_devel-repeater.eps \ camlib_devel.sgml camlib_devel.txt camlib_devel-y.eps \ frontend_devel.lyx frontend_devel.sgml frontend_devel.txt \ libgphoto2.3 libgphoto2_port.3 man_MANS = libgphoto2.3 libgphoto2_port.3 # doc_DATA = FAQ faq.xml ######################################################################## # Conditional rules, depending on tool availability ######################################################################## if HAVE_DOXYGEN DOXYGEN_FILES = DOXYGEN_STAMPS = $(DOXYGEN_OUTPUT_DIR).stamp # FIXME: Depend on source files. $(DOXYGEN_OUTPUT_DIR).stamp: Doxyfile doxygen Doxyfile echo > $@ $(HTML_APIDOC_DIR).tar.gz: $(DOXYGEN_OUTPUT_DIR).stamp (cd $(DOXYGEN_OUTPUT_DIR) && $(AMTAR) chof - $(HTML_APIDOC_DIR) | GZIP=--best gzip -c) > $@ DOC_APIDOC_HTML = apidocs.html install-apidocs: $(DOXYGEN_OUTPUT_DIR).stamp $(INSTALL) -m 0755 -d $(DESTDIR)$(docdir)/$(DOC_APIDOC_HTML) $(INSTALL) -m 0644 $(DOXYGEN_OUTPUT_DIR)/$(HTML_APIDOC_DIR)/* $(DESTDIR)$(docdir)/$(DOC_APIDOC_HTML)/ uninstall-apidocs: cd "$(DESTDIR)$(docdir)" && rm -f $(DOC_APIDOC_HTML)/* rmdir $(DESTDIR)$(docdir)/$(DOC_APIDOC_HTML) clean-apidocs: rm -rf $(DOXYGEN_OUTPUT_DIR) rm -f $(DOXYGEN_OUTPUT_DIR).stamp rm -f $(HTML_APIDOC_DIR).tar.gz # if we ever have more targets, move those out... all-local: $(DOXYGEN_STAMPS) install-data-local: install-apidocs uninstall-local: uninstall-apidocs clean-local: clean-apidocs doc_EXTRA_DIST = $(HTML_APIDOC_DIR).tar.gz doc_DATA = $(DOXYGEN_FILES) README.apidocs CLEANFILES = $(DOXYGEN_FILES) $(DOXYGEN_STAMPS) endif ######################################################################## # Common part ######################################################################## EXTRA_DIST = $(doc_EXTRA_DIST) Doxyfile.in README.apidocs $(old_EXTRA_DIST)