• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#***************************************************************************
2#                                  _   _ ____  _
3#  Project                     ___| | | |  _ \| |
4#                             / __| | | | |_) | |
5#                            | (__| |_| |  _ <| |___
6#                             \___|\___/|_| \_\_____|
7#
8# Copyright (C) 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# SPDX-License-Identifier: curl
22#
23###########################################################################
24
25AUTOMAKE_OPTIONS = foreign no-dependencies
26
27# EXTRA_DIST breaks with $(abs_builddir) so build it using this variable
28# but distribute it (using the relative file name) in the next variable
29man_MANS = $(abs_builddir)/curl.1 mk-ca-bundle.1
30noinst_man_MANS = curl.1 mk-ca-bundle.1
31dist_man_MANS = curl-config.1
32CURLPAGES = curl-config.md mk-ca-bundle.md
33
34# Build targets in this file (.) before cmdline-opts to ensure that
35# the curl.1 rule below runs first
36SUBDIRS = . cmdline-opts libcurl
37DIST_SUBDIRS = $(SUBDIRS) examples
38
39CLEANFILES = $(man_MANS) curl.1 curl-config.1 mk-ca-bundle.1
40nodist_MANS = $(CLEANFILES)
41
42EXTRA_DIST =                                    \
43 $(CURLPAGES)                                   \
44 ALTSVC.md                                      \
45 BINDINGS.md                                    \
46 BUFREF.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 CLIENT-WRITERS.md                              \
56 CONNECTION-FILTERS.md                          \
57 CONTRIBUTE.md                                  \
58 CURL-DISABLE.md                                \
59 CURLDOWN.md                                    \
60 DEPRECATE.md                                   \
61 DYNBUF.md                                      \
62 EARLY-RELEASE.md                               \
63 EXPERIMENTAL.md                                \
64 FAQ                                            \
65 FEATURES.md                                    \
66 GOVERNANCE.md                                  \
67 HELP-US.md                                     \
68 HISTORY.md                                     \
69 HSTS.md                                        \
70 HTTP-COOKIES.md                                \
71 HTTP2.md                                       \
72 HTTP3.md                                       \
73 HYPER.md                                       \
74 INSTALL                                        \
75 INSTALL-CMAKE.md                               \
76 INSTALL.md                                     \
77 INTERNALS.md                                   \
78 KNOWN_BUGS                                     \
79 MAIL-ETIQUETTE                                 \
80 MQTT.md                                        \
81 NEW-PROTOCOL.md                                \
82 options-in-versions                            \
83 PARALLEL-TRANSFERS.md                          \
84 README.md                                      \
85 RELEASE-PROCEDURE.md                           \
86 RUSTLS.md                                      \
87 ROADMAP.md                                     \
88 SECURITY-ADVISORY.md                           \
89 SSL-PROBLEMS.md                                \
90 SSLCERTS.md                                    \
91 THANKS                                         \
92 TODO                                           \
93 TheArtOfHttpScripting.md                       \
94 URL-SYNTAX.md                                  \
95 VERSIONS.md                                    \
96 VULN-DISCLOSURE-POLICY.md                      \
97 WEBSOCKET.md
98
99CD2NROFF = $(top_srcdir)/scripts/cd2nroff $< >$@
100
101CD2 = $(CD2_$(V))
102CD2_0 = @echo "  RENDER " $@;
103CD2_1 =
104CD2_ = $(CD2_0)
105
106SUFFIXES = .1 .md
107
108# $(abs_builddir) is to disable VPATH when searching for this file, which
109# would otherwise find the copy in $(srcdir) which breaks the $(HUGE)
110# rule in src/Makefile.am in out-of-tree builds that references the file in the
111# build directory.
112#
113# First, seed the used copy of curl.1 with the prebuilt copy (in an out-of-tree
114# build), then run make recursively to rebuild it only if its dependencies
115# have changed.
116$(abs_builddir)/curl.1:
117	if test "$(top_builddir)x" != "$(top_srcdir)x" -a -e "$(srcdir)/curl.1"; then \
118		$(INSTALL_DATA) "$(srcdir)/curl.1" $@ \
119		&& touch -r "$(srcdir)/curl.1" $@; fi
120	cd cmdline-opts && $(MAKE)
121
122.md.1:
123	$(CD2)$(CD2NROFF)
124
125curl-config.1: curl-config.md
126
127distclean:
128	rm -f $(CLEANFILES)
129