• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#***************************************************************************
2#                                  _   _ ____  _
3#  Project                     ___| | | |  _ \| |
4#                             / __| | | | |_) | |
5#                            | (__| |_| |  _ <| |___
6#                             \___|\___/|_| \_\_____|
7#
8# Copyright (C) 1998 - 2021, 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.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 BUFREF.md                                      \
48 BUG-BOUNTY.md                                  \
49 BUGS.md                                        \
50 CHECKSRC.md                                    \
51 CIPHERS.md                                     \
52 CMakeLists.txt                                 \
53 CODE_OF_CONDUCT.md                             \
54 CODE_REVIEW.md                                 \
55 CODE_STYLE.md                                  \
56 CONTRIBUTE.md                                  \
57 CURL-DISABLE.md                                \
58 DEPRECATE.md                                   \
59 DYNBUF.md                                      \
60 ECH.md                                         \
61 EXPERIMENTAL.md                                \
62 FAQ                                            \
63 FEATURES.md                                    \
64 GOVERNANCE.md                                  \
65 HELP-US.md                                     \
66 HISTORY.md                                     \
67 HSTS.md                                        \
68 HTTP-COOKIES.md                                \
69 HTTP2.md                                       \
70 HTTP3.md                                       \
71 HYPER.md                                       \
72 INSTALL                                        \
73 INSTALL.cmake                                  \
74 INSTALL.md                                     \
75 INTERNALS.md                                   \
76 KNOWN_BUGS                                     \
77 MAIL-ETIQUETTE                                 \
78 MQTT.md                                        \
79 NEW-PROTOCOL.md                                \
80 options-in-versions                            \
81 PARALLEL-TRANSFERS.md                          \
82 README.md                                      \
83 RELEASE-PROCEDURE.md                           \
84 RUSTLS.md                                      \
85 ROADMAP.md                                     \
86 SECURITY-PROCESS.md                            \
87 SSL-PROBLEMS.md                                \
88 SSLCERTS.md                                    \
89 THANKS                                         \
90 TODO                                           \
91 TheArtOfHttpScripting.md                       \
92 URL-SYNTAX.md                                  \
93 VERSIONS.md
94
95MAN2HTML= roffit $< >$@
96
97SUFFIXES = .1 .html .pdf
98
99# $(abs_builddir) is to disable VPATH when searching for this file, which
100# would otherwise find the copy in $(srcdir) which breaks the $(HUGE)
101# rule in src/Makefile.am in out-of-tree builds that references the file in the
102# build directory.
103#
104# First, seed the used copy of curl.1 with the prebuilt copy (in an out-of-tree
105# build), then run make recursively to rebuild it only if its dependencies
106# have changed.
107$(abs_builddir)/curl.1:
108	if test "$(top_builddir)x" != "$(top_srcdir)x" -a -e "$(srcdir)/curl.1"; then \
109		$(INSTALL_DATA) "$(srcdir)/curl.1" $@; fi
110	cd cmdline-opts && $(MAKE)
111
112html: $(HTMLPAGES)
113	cd libcurl && $(MAKE) html
114
115pdf: $(PDFPAGES)
116	cd libcurl && $(MAKE) pdf
117
118.1.html:
119	$(MAN2HTML)
120
121.1.pdf:
122	@(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
123	groff -Tps -man $< >$$foo.ps; \
124	ps2pdf $$foo.ps $@; \
125	rm $$foo.ps; \
126	echo "converted $< to $@")
127
128distclean:
129	rm -f $(CLEANFILES)
130