]> granicus.if.org Git - mutt/commitdiff
Change --disable-doc to only skip manual generation.
authorKevin McCarthy <kevin@8t8.us>
Tue, 4 Jun 2019 02:08:21 +0000 (19:08 -0700)
committerKevin McCarthy <kevin@8t8.us>
Tue, 4 Jun 2019 02:08:21 +0000 (19:08 -0700)
Instead of skipping the entire doc directory building, just skip the
manual.html, manual.txt, and mutt.info generation.

Generate and install the other files in the doc directory, which don't
have the same involved dependencies as the DocBook generated files.

Makefile.am
doc/Makefile.am

index 0d6a878f17d2b4f109b90817b4ac5d27e997ab6f..229e10375db7d2d7057a4c76e1208e6a24b56730 100644 (file)
@@ -5,16 +5,12 @@ include $(top_srcdir)/flymake.am
 AUTOMAKE_OPTIONS = 1.6 foreign
 EXTRA_PROGRAMS = mutt_dotlock mutt_pgpring pgpewrap mutt_md5
 
-if BUILD_DOC
-DOC_SUBDIR = doc
-endif
-
 if BUILD_IMAP
 IMAP_SUBDIR = imap
 IMAP_INCLUDES = -I$(top_srcdir)/imap
 endif
 
-SUBDIRS = m4 po intl $(DOC_SUBDIR) contrib $(IMAP_SUBDIR)
+SUBDIRS = m4 po intl doc contrib $(IMAP_SUBDIR)
 
 bin_SCRIPTS = muttbug flea $(SMIMEAUX_TARGET)
 
index e6361acf8a9ef0b1dd6130bfa6778f16ab0305cc..8f94a09b25d20ef2fadf77a161c4041cb112e14f 100644 (file)
@@ -8,6 +8,9 @@ subdir = doc
 if BUILD_INFO
 INFO_DOCFILES = mutt.info
 endif
+if BUILD_DOC
+BUILD_DOC_TARGETS = stamp-doc-chunked manual.html manual.txt $(INFO_DOCFILES)
+endif
 
 DEFS = -DSYSCONFDIR=\"$(sysconfdir)\" -DBINDIR=\"$(bindir)\" -DHAVE_CONFIG_H=1
 AM_CPPFLAGS = -I. -I.. -I$(includedir) -I$(top_srcdir)
@@ -54,7 +57,7 @@ topsrcdir_DOCFILES = COPYRIGHT GPL INSTALL ChangeLog  \
 
 all: makedoc-all
 
-makedoc-all: mutt.1 smime_keys.1 muttrc.man manual.html stamp-doc-rc stamp-doc-chunked manual.txt pgpewrap.1 mutt_pgpring.1 $(INFO_DOCFILES)
+makedoc-all: mutt.1 smime_keys.1 muttrc.man stamp-doc-rc pgpewrap.1 mutt_pgpring.1 $(BUILD_DOC_TARGETS)
 
 install-data-local: makedoc-all instdoc
        $(MKDIR_P) $(DESTDIR)$(mandir)/man1
@@ -76,9 +79,13 @@ install-data-local: makedoc-all instdoc
        for f in $(srcdir_DOCFILES) ; do \
                $(INSTALL) -m 644 $(srcdir)/$$f $(DESTDIR)$(docdir) ; \
        done
-       -$(INSTALL) -m 644 manual.txt $(DESTDIR)$(docdir)
+       -if [ -f manual.txt ] ; then \
+         $(INSTALL) -m 644 manual.txt $(DESTDIR)$(docdir) ; \
+       fi
        -for f in $(HTML_DOCFILES) ; do \
-               $(INSTALL) -m 644 $$f $(DESTDIR)$(docdir) ; \
+         if [ -f $$f ] ; then \
+           $(INSTALL) -m 644 $$f $(DESTDIR)$(docdir) ; \
+         fi \
        done
        $(INSTALL) -m 644 Muttrc $(DESTDIR)$(sysconfdir)/Muttrc.dist
        -if [ -f $(DESTDIR)$(pkgdatadir)/Muttrc ] ; then \
@@ -202,7 +209,7 @@ instdoc: instdoc.sh
        cat instdoc.sh > instdoc
        chmod a+x instdoc
 
-update-doc: stamp-doc-xml stamp-doc-chunked stamp-doc-rc manual.txt manual.html
+update-doc: stamp-doc-rc $(BUILD_DOC_TARGETS)
 
 muttrc.man: makedoc$(EXEEXT) $(top_srcdir)/init.h muttrc.man.head muttrc.man.tail
        $(MAKEDOC_CPP) $(top_srcdir)/init.h | ./makedoc$(EXEEXT) -m |       \