• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#***************************************************************************
2#                                  _   _ ____  _
3#  Project                     ___| | | |  _ \| |
4#                             / __| | | | |_) | |
5#                            | (__| |_| |  _ <| |___
6#                             \___|\___/|_| \_\_____|
7#
8# Copyright (C) 1998 - 2020, 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
23AUTOMAKE_OPTIONS = foreign no-dependencies
24
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
27man_MANS = $(abs_builddir)/curl.1
28noinst_man_MANS = curl.1 mk-ca-bundle.1
29dist_man_MANS = curl-config.1
30GENHTMLPAGES = curl.html curl-config.html mk-ca-bundle.html
31PDFPAGES = curl.pdf curl-config.pdf mk-ca-bundle.pdf
32MANDISTPAGES = curl.1.dist curl-config.1.dist
33
34HTMLPAGES = $(GENHTMLPAGES) index.html
35
36# Build targets in this file (.) before cmdline-opts to ensure that
37# the curl.1 rule below runs first
38SUBDIRS = . cmdline-opts
39DIST_SUBDIRS = $(SUBDIRS) examples libcurl
40
41CLEANFILES = $(GENHTMLPAGES) $(PDFPAGES) $(MANDISTPAGES) curl.1
42
43EXTRA_DIST =                                    \
44 $(noinst_man_MANS)                             \
45 ALTSVC.md                                      \
46 BINDINGS.md                                    \
47 BUG-BOUNTY.md                                  \
48 BUGS.md                                        \
49 CHECKSRC.md                                    \
50 CIPHERS.md                                     \
51 CMakeLists.txt                                 \
52 CODE_OF_CONDUCT.md                             \
53 CODE_REVIEW.md                                 \
54 CODE_STYLE.md                                  \
55 CONTRIBUTE.md                                  \
56 CURL-DISABLE.md                                \
57 DEPRECATE.md                                   \
58 DYNBUF.md                                      \
59 ECH.md                                         \
60 EXPERIMENTAL.md                                \
61 FAQ                                            \
62 FEATURES                                       \
63 GOVERNANCE.md                                  \
64 HELP-US.md                                     \
65 HISTORY.md                                     \
66 HTTP-COOKIES.md                                \
67 HTTP2.md                                       \
68 HTTP3.md                                       \
69 INSTALL                                        \
70 INSTALL.cmake                                  \
71 INSTALL.md                                     \
72 INTERNALS.md                                   \
73 KNOWN_BUGS                                     \
74 MAIL-ETIQUETTE                                 \
75 MQTT.md                                        \
76 options-in-versions                            \
77 PARALLEL-TRANSFERS.md                          \
78 README.md                                      \
79 RELEASE-PROCEDURE.md                           \
80 ROADMAP.md                                     \
81 SECURITY-PROCESS.md                            \
82 SSL-PROBLEMS.md                                \
83 SSLCERTS.md                                    \
84 THANKS                                         \
85 TODO                                           \
86 TheArtOfHttpScripting.md                       \
87 VERSIONS.md
88
89MAN2HTML= roffit $< >$@
90
91SUFFIXES = .1 .html .pdf
92
93# $(abs_builddir) is to disable VPATH when searching for this file, which
94# would otherwise find the copy in $(srcdir) which breaks the $(HUGE)
95# rule in src/Makefile.am in out-of-tree builds that references the file in the
96# build directory.
97#
98# First, seed the used copy of curl.1 with the prebuilt copy (in an out-of-tree
99# build), then run make recursively to rebuild it only if its dependencies
100# have changed.
101$(abs_builddir)/curl.1:
102	if test "$(top_builddir)x" != "$(top_srcdir)x" -a -e "$(srcdir)/curl.1"; then \
103		$(INSTALL_DATA) "$(srcdir)/curl.1" $@; fi
104	cd cmdline-opts && $(MAKE)
105
106html: $(HTMLPAGES)
107	cd libcurl && $(MAKE) html
108
109pdf: $(PDFPAGES)
110	cd libcurl && $(MAKE) pdf
111
112.1.html:
113	$(MAN2HTML)
114
115.1.pdf:
116	@(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
117	groff -Tps -man $< >$$foo.ps; \
118	ps2pdf $$foo.ps $@; \
119	rm $$foo.ps; \
120	echo "converted $< to $@")
121
122distclean:
123	rm -f $(CLEANFILES)
124