1#***************************************************************************
2#                                  _   _ ____  _
3#  Project                     ___| | | |  _ \| |
4#                             / __| | | | |_) | |
5#                            | (__| |_| |  _ <| |___
6#                             \___|\___/|_| \_\_____|
7#
8# Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
9#
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.
13#
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.
17#
18# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19# KIND, either express or implied.
20#
21###########################################################################
22
23AUTOMAKE_OPTIONS = foreign no-dependencies
24
25man_MANS = curl.1 curl-config.1
26GENHTMLPAGES = curl.html curl-config.html
27PDFPAGES = curl.pdf curl-config.pdf
28
29HTMLPAGES = $(GENHTMLPAGES) index.html
30
31SUBDIRS = examples libcurl
32
33CLEANFILES = $(GENHTMLPAGES) $(PDFPAGES)
34
35EXTRA_DIST = MANUAL BUGS CONTRIBUTE FAQ FEATURES INTERNALS SSLCERTS	 \
36 README.win32 RESOURCES TODO TheArtOfHttpScripting THANKS VERSIONS	 \
37 KNOWN_BUGS BINDINGS $(man_MANS) $(HTMLPAGES) HISTORY INSTALL		 \
38 $(PDFPAGES) LICENSE-MIXING README.netware DISTRO-DILEMMA INSTALL.devcpp \
39 MAIL-ETIQUETTE
40
41MAN2HTML= roffit < $< >$@
42
43SUFFIXES = .1 .html .pdf
44
45html: $(HTMLPAGES)
46	cd libcurl; make html
47
48pdf: $(PDFPAGES)
49	cd libcurl; make pdf
50
51.1.html:
52	$(MAN2HTML)
53
54.1.pdf:
55	@(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
56	groff -Tps -man $< >$$foo.ps; \
57	ps2pdf $$foo.ps $@; \
58	rm $$foo.ps; \
59	echo "converted $< to $@")
60
61