diff options
author | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2013-06-19 23:59:13 +0800 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2013-06-19 23:59:13 +0800 |
commit | 93278dc7e362a932d01a16108d3431b6283ddcbb (patch) | |
tree | 5754e34c347119bbe029ea50d82da5d72b62d014 /Makefile.in | |
parent | 292908c00a166d2989efc1d1508a067bb49b88ca (diff) |
docs: configure/Makefile changes to require at least Doxygen 1.5
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in index c59ac0de..9db4aa47 100644 --- a/Makefile.in +++ b/Makefile.in @@ -76,6 +76,11 @@ LDFLAGS_MIMEDB = ${LDFLAGS} @LIBS_MIMEDB@ HAVE_GETTEXT=@HAVE_GETTEXT@ +# +# Set to 1 if we have doxygen +# + +HAVE_DOXYGEN=@HAVE_DOXYGEN@ # #Additional .cpp files used by common.o. These also have a corresponding @@ -258,12 +263,21 @@ MANUALS := $(addsuffix .1, $(addprefix share/man/man1/, \ TRANSLATIONS_SRC := $(wildcard po/*.po) TRANSLATIONS := $(TRANSLATIONS_SRC:.po=.gmo) +# +# If Doxygen is not available, don't attempt to build the documentation +# + +ifeq ($(HAVE_DOXYGEN), 1) + user_doc=user_doc +else + user_doc= +endif # # Make everything needed for installing fish # -all: $(PROGRAMS) user_doc share/man $(TRANSLATIONS) +all: $(PROGRAMS) $(user_doc) share/man $(TRANSLATIONS) @echo fish has now been built. @echo Use \'$(MAKE) install\' to install fish. .PHONY: all @@ -297,10 +311,9 @@ prof: all # Depend on the sources (*.hdr.in) and manually make the # intermediate *.hdr and doc.h files if needed -# Allow doxygen to fail, e.g. if it does not exist user_doc: $(HDR_FILES_SRC) Doxyfile.user user_doc.head.html $(HELP_SRC) doc.h $(HDR_FILES) - - (cat Doxyfile.user ; echo PROJECT_NUMBER=@PACKAGE_VERSION@) | doxygen - && touch user_doc + (cat Doxyfile.user ; echo PROJECT_NUMBER=@PACKAGE_VERSION@) | doxygen - && touch user_doc # @@ -839,7 +852,7 @@ clean: rm -f fish-@PACKAGE_VERSION@.tar rm -f fish-@PACKAGE_VERSION@.tar.gz rm -f fish-@PACKAGE_VERSION@.tar.bz2 - if command -v doxygen; then \ + if test $(HAVE_DOXYGEN) = 1; then \ rm -rf doc user_doc share/man; \ fi rm -rf fish-@PACKAGE_VERSION@ |