Source

libtaginfo / docs / Makefile.am

Full commit
apidir  = @htmldir@/api
capidir = @htmldir@/c_api

dist_noinst_DATA = \
    field_name_table.ods \
    doxygen_to_devhelp.xsl \
    doxygen_to_devhelp_c.xsl \
    Doxyfile_lib \
    Doxyfile_lib.in \
    Doxyfile_c \
    Doxyfile_c.in


if LIBTAGINFO_DOXYGEN_DOCS_ENABLED

doxyfile_lib.stamp: $(wildcard $(top_srcdir)/libtaginfo/*)
	$(AM_V_GEN)cd $(top_builddir)/docs && doxygen Doxyfile_lib
	@touch $@

doxyfile_c.stamp: $(wildcard $(top_srcdir)/bindings/c/*)
	$(AM_V_GEN)cd $(top_builddir)/docs && doxygen Doxyfile_c
	@touch $@

devhelpapi_DATA =
devhelpapidir=$(datadir)/devhelp/books/libtaginfo

devhelpcapi_DATA =
devhelpcapidir=$(datadir)/devhelp/books/libtaginfo_c

if LIBTAGINFO_HAVE_XSLTPROC
devhelpapi_DATA += libtaginfo.devhelp
devhelpcapi_DATA += libtaginfo_c.devhelp

libtaginfo.devhelp: $(srcdir)/doxygen_to_devhelp.xsl doxyfile_lib.stamp
	$(XSLTPROC) -o $@ $< libtaginfo/xml/index.xml

libtaginfo_c.devhelp: $(srcdir)/doxygen_to_devhelp_c.xsl doxyfile_c.stamp
	$(XSLTPROC) -o $@ $< libtaginfo_c/xml/index.xml
endif


all-local: doxyfile_lib.stamp doxyfile_c.stamp

# Assume CREATE_SUBDIRS is set to NO in the according Doxyfile
install-data-local:: doxyfile_lib.stamp doxyfile_c.stamp
	$(MKDIR_P) $(DESTDIR)$(apidir)
	$(INSTALL_DATA) libtaginfo/html/* $(DESTDIR)$(apidir)
	$(MKDIR_P) $(DESTDIR)$(capidir)
	$(INSTALL_DATA) libtaginfo_c/html/* $(DESTDIR)$(capidir)

uninstall-local::
	rm -f $(DESTDIR)$(apidir)/*.html
	rm -f $(DESTDIR)$(apidir)/*.png
	rm -f $(DESTDIR)$(apidir)/*.css
	rm -f $(DESTDIR)$(apidir)/*.js
	rm -f $(DESTDIR)$(capidir)/*.html
	rm -f $(DESTDIR)$(capidir)/*.png
	rm -f $(DESTDIR)$(capidir)/*.css
	rm -f $(DESTDIR)$(capidir)/*.js
	rm -f $(DESTDIR)$(htmldir)/*.html
	rm -f $(DESTDIR)$(docdir)/*.txt
	rm -f $(DESTDIR)$(htmldir)/*.png
	rm -f $(DESTDIR)$(htmldir)/*.svg
	rmdir --ignore-fail-on-non-empty $(DESTDIR)$(apidir) || \
		rmdir $(DESTDIR)$(apidir)
	rmdir --ignore-fail-on-non-empty $(DESTDIR)$(capidir) || \
		rmdir $(DESTDIR)$(capidir)

endif

CLEANFILES = doxyfile_lib.stamp doxyfile_c.stamp

clean-local:
	rm -f $(devhelpapi_DATA)
	rm -f $(devhelpcapi_DATA)
	rm -rf libtaginfo
	rm -rf libtaginfo_c
	rm -f doxyfile_lib.stamp
	rm -f doxyfile_c.stamp

DISTCLEANFILES = \
    doxyfile_lib.stamp \
    doxyfile_c.stamp \
    Makefile.in