[5] | 1 | ## $Id: Makefile.am 4019 2020-11-06 01:55:37Z peter $ |
---|
| 2 | |
---|
[2119] | 3 | # Copyright (C) 2003 Jari Häkkinen |
---|
[831] | 4 | # Copyright (C) 2005 Peter Johansson |
---|
[2119] | 5 | # Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson |
---|
[3987] | 6 | # Copyright (C) 2009, 2010, 2011, 2012, 2020 Peter Johansson |
---|
[675] | 7 | # |
---|
[1437] | 8 | # This file is part of the yat library, http://dev.thep.lu.se/yat |
---|
[675] | 9 | # |
---|
| 10 | # The yat library is free software; you can redistribute it and/or |
---|
| 11 | # modify it under the terms of the GNU General Public License as |
---|
[1486] | 12 | # published by the Free Software Foundation; either version 3 of the |
---|
[675] | 13 | # License, or (at your option) any later version. |
---|
| 14 | # |
---|
| 15 | # The yat library is distributed in the hope that it will be useful, |
---|
| 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
| 18 | # General Public License for more details. |
---|
| 19 | # |
---|
| 20 | # You should have received a copy of the GNU General Public License |
---|
[1487] | 21 | # along with yat. If not, see <http://www.gnu.org/licenses/>. |
---|
[675] | 22 | |
---|
[1263] | 23 | |
---|
[2739] | 24 | DOXYGEN_FILES = $(srcdir)/doc/build_tool.doxygen \ |
---|
| 25 | $(srcdir)/doc/deprecated.doxygen \ |
---|
| 26 | $(srcdir)/doc/footer.html \ |
---|
| 27 | $(srcdir)/doc/namespaces.doxygen \ |
---|
| 28 | $(srcdir)/doc/concepts.doxygen \ |
---|
| 29 | $(srcdir)/doc/Statistics.doxygen |
---|
[1303] | 30 | |
---|
[2739] | 31 | EXTRA_DIST += $(DOXYGEN_FILES) |
---|
[1906] | 32 | |
---|
[2739] | 33 | DOXYGEN_INPUT += $(DOXYGEN_FILES) |
---|
| 34 | DOXYGEN_INPUT += $(nobase_include_HEADERS) |
---|
| 35 | DOXYGEN_INPUT += $(nobase_nodist_include_HEADERS) |
---|
[2744] | 36 | DOXYGEN_INPUT += $(builddir)/doc/first_page.doxygen |
---|
[1266] | 37 | |
---|
[2739] | 38 | DOXYGEN_DEPS = $(DOXYGEN_INPUT) doc/doxygen.config |
---|
[1263] | 39 | |
---|
[2750] | 40 | doc: html |
---|
| 41 | |
---|
[1998] | 42 | if DX_ENABLE_HTML |
---|
[3966] | 43 | html-local: doc/html/index.html |
---|
[2853] | 44 | INSTALL_CHECK_TARGETS += installcheck-html |
---|
[1998] | 45 | endif |
---|
[957] | 46 | |
---|
[3968] | 47 | EXTRA_DIST += doc/doxygen.config.in |
---|
| 48 | |
---|
[4019] | 49 | # config file needs to be updated when $(DOXYGEN_INPUT) is |
---|
| 50 | # changed. That variable is set in various Makefile.am, but instead we |
---|
| 51 | # depend on Makefile.in, since that dependency is easier to maintain. |
---|
| 52 | doc/doxygen.config: doc/doxygen.config.in $(srcdir)/Makefile.in |
---|
[3966] | 53 | $(AM_V_GEN)echo "# $@ generated by make from doc/doxygen.config.in." \ |
---|
| 54 | > $@-t \ |
---|
| 55 | && $(edit) '$(srcdir)/doc/doxygen.config.in' >> $@-t \ |
---|
| 56 | && echo "INPUT = $(DOXYGEN_INPUT)" >> $@-t \ |
---|
| 57 | && mv $@-t $@ |
---|
[957] | 58 | |
---|
[3966] | 59 | doc/html/index.html: $(DOXYGEN_DEPS) |
---|
| 60 | $(AM_V_GEN)$(DOXYGEN) doc/doxygen.config $(yat_dev_null) |
---|
| 61 | |
---|
| 62 | |
---|
[2739] | 63 | install-data-hook: install-html |
---|
[1256] | 64 | |
---|
[2082] | 65 | installdirs-local: |
---|
[2492] | 66 | test -z "$(DESTDIR)$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)"; |
---|
[2082] | 67 | |
---|
| 68 | # local install rules does not generate any documentation, in order to |
---|
| 69 | # follow the recommendation in GCS that `make install' should not |
---|
| 70 | # modify/create anything in builddir, proved `make all' has just been |
---|
| 71 | # done. This is for the common case that `make all' is issued as one |
---|
| 72 | # user and `make install' is issued as, for example, superuser. |
---|
| 73 | |
---|
[2045] | 74 | install-html-local: |
---|
[2082] | 75 | @$(NORMAL_INSTALL) |
---|
[3968] | 76 | @if test -d doc/html; then \ |
---|
[2492] | 77 | test -z "$(DESTDIR)$(htmldir)" || \ |
---|
| 78 | { $(MKDIR_P) "$(DESTDIR)$(htmldir)"; \ |
---|
[3968] | 79 | $(INSTALL_DATA) doc/html/* $(DESTDIR)$(htmldir); \ |
---|
[2492] | 80 | } \ |
---|
[1256] | 81 | fi |
---|
| 82 | |
---|
[2491] | 83 | uninstall-local: |
---|
| 84 | @$(NORMAL_UNINSTALL) |
---|
| 85 | rm -rf $(DESTDIR)$(htmldir) |
---|
| 86 | |
---|
[2853] | 87 | # check that html has been installed (only activated when DX_ENABLE_HTML) |
---|
| 88 | ## see ticket #721 |
---|
| 89 | installcheck-html: |
---|
| 90 | $(AM_V_at) test -r "$(DESTDIR)/$(htmldir)/index.html" \ |
---|
| 91 | || { echo "no documentation installed" 1>&2; exit 1; } |
---|
| 92 | |
---|
[3987] | 93 | MOSTLYCLEANFILES += doc/doxygen.config |
---|
[2739] | 94 | MOSTLYCLEANFILES += doc/doxygen.error |
---|