mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:23:36 +03:00
Based on Dan Fandrich's patch and gzip unpack function, we now compress
the 'hugehelp' text if libz and gzip are available at build time.
This commit is contained in:
parent
4a8155b53c
commit
9c7703ace1
2 changed files with 115 additions and 14 deletions
|
|
@ -11,6 +11,14 @@ INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/src -I$(top_srcdir)/src
|
|||
|
||||
bin_PROGRAMS = curl #memtest
|
||||
|
||||
if HAVE_LIBZ
|
||||
# libz available, attempt to compress the help data
|
||||
MKHELPOPT=-c
|
||||
else
|
||||
# no libz, don't try to compress
|
||||
MKHELPOPT=
|
||||
endif
|
||||
|
||||
#memtest_SOURCES = memtest.c
|
||||
#memtest_LDADD = $(top_srcdir)/lib/libcurl.la
|
||||
|
||||
|
|
@ -38,4 +46,4 @@ MKHELP=$(top_srcdir)/src/mkhelp.pl
|
|||
# This generates the hugehelp.c file
|
||||
hugehelp.c: $(README) $(MANPAGE) mkhelp.pl
|
||||
rm -f hugehelp.c
|
||||
$(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) $(README) > hugehelp.c
|
||||
$(NROFF) -man $(MANPAGE) | $(PERL) -s $(MKHELP) $(MKHELPOPT) $(README) > hugehelp.c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue