ee8f607185f1530599a334aad33c3b32ab38db0c
[platform/upstream/curl.git] / docs / Makefile.am
1 #***************************************************************************
2 #                                  _   _ ____  _
3 #  Project                     ___| | | |  _ \| |
4 #                             / __| | | | |_) | |
5 #                            | (__| |_| |  _ <| |___
6 #                             \___|\___/|_| \_\_____|
7 #
8 # Copyright (C) 1998 - 2017, 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 https://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
23 AUTOMAKE_OPTIONS = foreign no-dependencies
24
25 man_MANS = curl.1 curl-config.1
26 noinst_man_MANS = mk-ca-bundle.1
27 GENHTMLPAGES = curl.html curl-config.html mk-ca-bundle.html
28 PDFPAGES = curl.pdf curl-config.pdf mk-ca-bundle.pdf
29
30 HTMLPAGES = $(GENHTMLPAGES) index.html
31
32 SUBDIRS = examples libcurl cmdline-opts
33
34 CLEANFILES = $(GENHTMLPAGES) $(PDFPAGES) curl.1
35
36 EXTRA_DIST = MANUAL BUGS CONTRIBUTE.md FAQ FEATURES INTERNALS.md SSLCERTS.md  \
37  README.win32 RESOURCES TODO TheArtOfHttpScripting THANKS VERSIONS KNOWN_BUGS \
38  BINDINGS.md $(man_MANS) HISTORY.md INSTALL INSTALL.md LICENSE-MIXING.md         \
39  README.netware MAIL-ETIQUETTE HTTP-COOKIES.md SECURITY.md RELEASE-PROCEDURE  \
40  SSL-PROBLEMS.md HTTP2.md ROADMAP.md CODE_OF_CONDUCT.md CODE_STYLE.md         \
41  CHECKSRC.md
42
43 MAN2HTML= roffit $< >$@
44
45 SUFFIXES = .1 .html .pdf
46
47 curl.1:
48         cd cmdline-opts && make
49
50 html: $(HTMLPAGES)
51         cd libcurl && make html
52
53 pdf: $(PDFPAGES)
54         cd libcurl && make pdf
55
56 .1.html:
57         $(MAN2HTML)
58
59 .1.pdf:
60         @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
61         groff -Tps -man $< >$$foo.ps; \
62         ps2pdf $$foo.ps $@; \
63         rm $$foo.ps; \
64         echo "converted $< to $@")
65