1# Copyright (C) 2017 Yann Pouillon 2 3# 4# Makefile for the documentation of XMLF90 5# 6 7SUBDIRS = Examples Tutorial 8 9EXTRA_DIST = \ 10 ReleaseNotes-1.1 \ 11 ReleaseNotes-1.2 \ 12 ReleaseNotes-1.4 \ 13 ReleaseNotes-1.5 14 15if DO_BUILD_DOXYGEN 16if DO_BUILD_LATEX 17all-local: .docgen-stamp .docgen-latex-stamp 18else 19all-local: .docgen-stamp 20endif 21 22.docgen-stamp: Doxyfile 23 $(DOXYGEN) Doxyfile 24 touch .docgen-stamp 25if DO_BUILD_LATEX 26developers/@PACKAGE@-@VERSION@-reference.pdf: .docgen-latex-stamp 27 28.docgen-latex-stamp: .docgen-stamp 29 cd developers/latex && $(MAKE) all 30 $(LN_S) latex/refman.pdf developers/@PACKAGE@-@VERSION@-reference.pdf 31 touch .docgen-latex-stamp 32endif 33 34install-data-local: 35 $(INSTALL) -m 755 -d $(DESTDIR)$(docdir)/developers 36 find developers/html -type f -exec $(INSTALL_DATA) -D "{}" "$(DESTDIR)$(docdir)/{}" \; 37if DO_BUILD_LATEX 38 $(INSTALL_DATA) developers/@PACKAGE@-@VERSION@-reference.pdf $(DESTDIR)$(docdir)/developers 39endif 40 41uninstall-local: 42 rm -rf $(DESTDIR)$(docdir)/developers 43 44clean-local: 45 rm -rf developers 46 rm -f .docgen-stamp .docgen-latex-stamp 47endif 48