README.curl is now MANUAL
[platform/upstream/curl.git] / src / Makefile.am
1 #
2 # $Id$
3 #
4
5 # Some flags needed when trying to cause warnings ;-)
6 # CFLAGS = -g -DMALLOCDEBUG # -Wall -pedantic
7 #CPPFLAGS = -DGLOBURL -DCURL_SEPARATORS
8
9 INCLUDES = -I$(top_srcdir)/include
10
11 bin_PROGRAMS = curl #memtest
12
13 #memtest_SOURCES = memtest.c
14 #memtest_LDADD = $(top_srcdir)/lib/libcurl.la
15
16 curl_SOURCES = main.c hugehelp.c urlglob.c writeout.c
17 curl_LDADD = $(top_srcdir)/lib/libcurl.la
18 curl_DEPENDENCIES = $(top_srcdir)/lib/libcurl.la
19 BUILT_SOURCES = hugehelp.c
20 CLEANFILES = hugehelp.c
21 NROFF=@NROFF@
22
23 EXTRA_DIST = mkhelp.pl Makefile.vc6
24
25 AUTOMAKE_OPTIONS = foreign no-dependencies
26
27 MANPAGE=$(top_srcdir)/docs/curl.1
28 README=$(top_srcdir)/docs/MANUAL
29 MKHELP=$(top_srcdir)/src/mkhelp.pl
30
31 # This generates the hugehelp.c file
32 hugehelp.c: $(README) $(MANPAGE)  mkhelp.pl
33         rm -f hugehelp.c
34         $(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP)  $(README) > hugehelp.c