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