1 #***************************************************************************
3 # Project ___| | | | _ \| |
5 # | (__| |_| | _ <| |___
6 # \___|\___/|_| \_\_____|
8 # Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
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.
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.
18 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 # KIND, either express or implied.
21 ###########################################################################
23 AUTOMAKE_OPTIONS = foreign no-dependencies
25 # EXTRA_DIST breaks with $(abs_builddir) so build it using this variable
26 # but distribute it (using the relative file name) in the next variable
27 man_MANS = $(abs_builddir)/curl.1
28 noinst_man_MANS = curl.1 mk-ca-bundle.1
29 dist_man_MANS = curl-config.1
30 GENHTMLPAGES = curl.html curl-config.html mk-ca-bundle.html
31 PDFPAGES = curl.pdf curl-config.pdf mk-ca-bundle.pdf
32 MANDISTPAGES = curl.1.dist curl-config.1.dist
34 HTMLPAGES = $(GENHTMLPAGES) index.html
36 # Build targets in this file (.) before cmdline-opts to ensure that
37 # the curl.1 rule below runs first
38 SUBDIRS = . cmdline-opts
39 DIST_SUBDIRS = $(SUBDIRS) examples libcurl
41 CLEANFILES = $(GENHTMLPAGES) $(PDFPAGES) $(MANDISTPAGES) curl.1
43 EXTRA_DIST = MANUAL BUGS CONTRIBUTE.md FAQ FEATURES INTERNALS.md SSLCERTS.md \
44 README.win32 RESOURCES TODO TheArtOfHttpScripting THANKS VERSIONS KNOWN_BUGS \
45 BINDINGS.md HISTORY.md INSTALL INSTALL.md LICENSE-MIXING.md \
46 README.netware MAIL-ETIQUETTE HTTP-COOKIES.md SECURITY.md RELEASE-PROCEDURE \
47 SSL-PROBLEMS.md HTTP2.md ROADMAP.md CODE_OF_CONDUCT.md CODE_STYLE.md \
48 CHECKSRC.md CMakeLists.txt README.md CIPHERS.md INSTALL.cmake README.cmake \
49 $(noinst_man_MANS) HELP-US.md
51 MAN2HTML= roffit $< >$@
53 SUFFIXES = .1 .html .pdf
55 # $(abs_builddir) is to disable VPATH when searching for this file, which
56 # would otherwise find the copy in $(srcdir) which breaks the $(HUGE)
57 # rule in src/Makefile.am in out-of-tree builds that references the file in the
60 # First, seed the used copy of curl.1 with the prebuilt copy (in an out-of-tree
61 # build), then run make recursively to rebuild it only if its dependencies
63 $(abs_builddir)/curl.1:
64 if test "$(top_builddir)x" != "$(top_srcdir)x" -a -e "$(srcdir)/curl.1"; then \
65 cp -fp "$(srcdir)/curl.1" $@; fi
66 cd cmdline-opts && $(MAKE)
69 cd libcurl && $(MAKE) html
72 cd libcurl && $(MAKE) pdf
78 @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
79 groff -Tps -man $< >$$foo.ps; \
82 echo "converted $< to $@")