aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: a5aadc260acbcad1b084ce1d2e46330d0a4ab3d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# $Id$
#

# Some flags needed when trying to cause warnings ;-)
# CFLAGS = -Wall -pedantic
#CPPFLAGS = -DGLOBURL -DCURL_SEPARATORS

INCLUDES = -I$(top_srcdir)/include

bin_PROGRAMS = curl

curl_SOURCES = main.c hugehelp.c urlglob.c writeout.c
curl_LDADD = $(top_srcdir)/lib/libcurl.la
curl_DEPENDENCIES = $(top_srcdir)/lib/libcurl.la
BUILT_SOURCES = hugehelp.c
CLEANFILES = hugehelp.c
NROFF=@NROFF@

EXTRA_DIST = mkhelp.pl Makefile.vc6

AUTOMAKE_OPTIONS = foreign no-dependencies

MANPAGE=$(top_srcdir)/docs/curl.1
README=$(top_srcdir)/docs/README.curl
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