1 #***************************************************************************
3 # Project ___| | | | _ \| |
5 # | (__| |_| | _ <| |___
6 # \___|\___/|_| \_\_____|
8 # Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
10 # This software is licensed as described in the file COPYING, which
11 # you should have received as part of this distribution. The terms
12 # are also available at http://curl.haxx.se/docs/copyright.html.
14 # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 # copies of the Software, and permit persons to whom the Software is
16 # furnished to do so, under the terms of the COPYING file.
18 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 # KIND, either express or implied.
22 ###########################################################################
23 AUTOMAKE_OPTIONS = foreign nostdinc
25 # we use srcdir/src for "private" includes
26 # we use srcdir/include for the static global include files
27 # we use builddir/src for the generated include files to get found
28 # we use srcdir/lib for the header files we "borrow" from the lib
29 INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddir)/src \
36 curl_LDADD = ../lib/libcurl.la
37 curl_DEPENDENCIES = ../lib/libcurl.la
38 BUILT_SOURCES = hugehelp.c
39 CLEANFILES = hugehelp.c
40 NROFF=@NROFF@ @MANOPT@ # figured out by the configure script
42 EXTRA_DIST = mkhelp.pl makefile.dj Makefile.vc6 Makefile.b32 Makefile.m32 \
43 Makefile.riscos config.h.in macos/curl.mcp.xml.sit.hqx \
44 macos/MACINSTALL.TXT macos/src/curl_GUSIConfig.cpp \
45 macos/src/macos_main.cpp config-amigaos.h makefile.amiga curl.rc \
46 Makefile.netware Makefile.inc
48 MANPAGE=$(top_srcdir)/docs/curl.1
49 README=$(top_srcdir)/docs/MANUAL
50 MKHELP=$(top_srcdir)/src/mkhelp.pl
54 # Here are the stuff to create a built-in manual
57 # This generates the hugehelp.c file in both uncompressed and compressed formats
58 $(HUGE): $(README) $(MANPAGE) mkhelp.pl
59 echo '#include "setup.h"' > $(HUGE)
60 echo '#ifndef HAVE_LIBZ' >> $(HUGE)
61 $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> $(HUGE)
62 echo '#else' >> $(HUGE)
63 $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) -c $(README) >> $(HUGE)
64 echo '#endif /* HAVE_LIBZ */' >> $(HUGE)
66 # This generates the hugehelp.c file uncompressed only
67 $(HUGE): $(README) $(MANPAGE) mkhelp.pl
68 echo '#include "setup.h"' > $(HUGE)
69 $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> $(HUGE)
73 # built-in manual has been disabled, make a blank file
75 echo "/* built-in manual is disabled, blank function */" > $(HUGE)
76 echo '#include "hugehelp.h"' >> $(HUGE)
77 echo "void hugehelp(void) {}" >>$(HUGE)