automake usage and options cleanup
[platform/upstream/curl.git] / src / Makefile.am
1 #
2 # $Id$
3 #
4
5 AUTOMAKE_OPTIONS = foreign nostdinc
6
7 INCLUDES = -I$(top_srcdir)/include
8
9 bin_PROGRAMS = curl #memtest
10
11 #memtest_SOURCES = memtest.c
12 #memtest_LDADD = $(top_srcdir)/lib/libcurl.la
13
14 curl_SOURCES = main.c hugehelp.c urlglob.c writeout.c setup.h \
15         config-win32.h \
16         config-mac.h \
17         config-vms.h \
18         urlglob.h \
19         version.h \
20         writeout.h \
21         config-win32.h \
22         config-mac.h \
23         config-vms.h    
24
25 curl_LDADD = ../lib/libcurl.la
26 curl_DEPENDENCIES = ../lib/libcurl.la
27 BUILT_SOURCES = hugehelp.c
28 CLEANFILES = hugehelp.c
29 NROFF=@NROFF@
30
31 EXTRA_DIST = mkhelp.pl curlmsg.msg \
32         Makefile.vc6 Makefile.b32 Makefile.m32 config.h.in \
33         macos/curl.mcp.xml.sit.hqx \
34         macos/MACINSTALL.TXT \
35         macos/src/curl_GUSIConfig.cpp \
36         macos/src/macos_main.cpp
37
38 MANPAGE=$(top_srcdir)/docs/curl.1
39 README=$(top_srcdir)/docs/MANUAL
40 MKHELP=$(top_srcdir)/src/mkhelp.pl
41
42 # This generates the hugehelp.c file
43 hugehelp.c: $(README) $(MANPAGE)  mkhelp.pl
44         rm -f hugehelp.c
45         $(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP)  $(README) > hugehelp.c