diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-12 14:46:12 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-12 14:46:12 +0000 |
commit | 1d937d62c0aa3c0ef2e500510a44a02af56bd707 (patch) | |
tree | e5f68a100adc95b42bf2bd5c3a3b335ecb5ce3c0 /src/Makefile.am | |
parent | f3663a9d0f3cf7511e056fafe2e25bca7169d50a (diff) | |
download | curl-1d937d62c0aa3c0ef2e500510a44a02af56bd707.tar.gz |
support configure --disable-manual
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 11 |
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 |