aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-12 14:46:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-12 14:46:12 +0000
commit1d937d62c0aa3c0ef2e500510a44a02af56bd707 (patch)
treee5f68a100adc95b42bf2bd5c3a3b335ecb5ce3c0 /src/Makefile.am
parentf3663a9d0f3cf7511e056fafe2e25bca7169d50a (diff)
support configure --disable-manual
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 05c5d328b..369b40ca0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -53,6 +53,9 @@ README=$(top_srcdir)/docs/MANUAL
MKHELP=$(top_srcdir)/src/mkhelp.pl
HUGE=hugehelp.c
+if USE_MANUAL
+# Here are the stuff to create a built-in manual
+
if HAVE_LIBZ
# This generates the hugehelp.c file in both uncompressed and compressed formats
$(HUGE): $(README) $(MANPAGE) mkhelp.pl
@@ -64,8 +67,14 @@ $(HUGE): $(README) $(MANPAGE) mkhelp.pl
echo '#else' >> $(HUGE)
$(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) -c $(README) >> $(HUGE)
echo '#endif /* HAVE_LIBZ */' >> $(HUGE)
-else
+else # HAVE_LIBZ
# This generates the hugehelp.c file uncompressed only
$(HUGE): $(README) $(MANPAGE) mkhelp.pl
$(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) $(README) > $(HUGE)
endif
+
+else # USE_MANUAL
+# built-in manual has been disabled, make a blank file
+$(HUGE):
+ echo "/* explicitly disabled */" >$(HUGE)
+endif