2011-03-12 07:14:32 +08:00
|
|
|
#***************************************************************************
|
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
# \___|\___/|_| \_\_____|
|
2002-03-04 18:09:48 +08:00
|
|
|
#
|
2023-01-02 20:51:48 +08:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2002-03-04 18:09:48 +08:00
|
|
|
#
|
2011-03-12 07:14:32 +08:00
|
|
|
# This software is licensed as described in the file COPYING, which
|
|
|
|
# you should have received as part of this distribution. The terms
|
2020-11-04 21:02:01 +08:00
|
|
|
# are also available at https://curl.se/docs/copyright.html.
|
2011-03-12 07:14:32 +08:00
|
|
|
#
|
|
|
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
# copies of the Software, and permit persons to whom the Software is
|
|
|
|
# furnished to do so, under the terms of the COPYING file.
|
|
|
|
#
|
|
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
# KIND, either express or implied.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: curl
|
2022-05-17 17:16:50 +08:00
|
|
|
#
|
2011-03-12 07:14:32 +08:00
|
|
|
###########################################################################
|
2002-03-04 18:09:48 +08:00
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = foreign no-dependencies
|
|
|
|
|
2014-06-17 06:29:02 +08:00
|
|
|
SUBDIRS = opts
|
|
|
|
|
2017-02-26 06:38:25 +08:00
|
|
|
include Makefile.inc
|
2002-03-04 18:09:48 +08:00
|
|
|
|
2017-02-27 05:44:17 +08:00
|
|
|
man_DISTMANS = $(man_MANS:.3=.3.dist)
|
|
|
|
|
2017-02-25 22:08:41 +08:00
|
|
|
HTMLPAGES = $(man_MANS:.3=.html)
|
2002-03-04 18:09:48 +08:00
|
|
|
|
2017-02-25 22:08:41 +08:00
|
|
|
PDFPAGES = $(man_MANS:.3=.pdf)
|
2017-03-30 14:12:37 +08:00
|
|
|
|
2013-10-14 01:39:42 +08:00
|
|
|
m4macrodir = $(datadir)/aclocal
|
|
|
|
dist_m4macro_DATA = libcurl.m4
|
|
|
|
|
2017-02-27 05:44:17 +08:00
|
|
|
CLEANFILES = $(HTMLPAGES) $(PDFPAGES) $(TESTS) $(man_DISTMANS) \
|
|
|
|
libcurl-symbols.3
|
2003-08-12 16:51:23 +08:00
|
|
|
|
2020-06-12 19:26:20 +08:00
|
|
|
EXTRA_DIST = $(man_MANS) ABI.md symbols-in-versions symbols.pl \
|
2017-03-30 14:12:37 +08:00
|
|
|
mksymbolsmanpage.pl CMakeLists.txt
|
2016-03-22 17:46:08 +08:00
|
|
|
MAN2HTML= roffit --mandir=. $< >$@
|
2002-03-04 18:09:48 +08:00
|
|
|
|
2003-08-12 17:08:05 +08:00
|
|
|
SUFFIXES = .3 .html
|
2002-03-04 18:09:48 +08:00
|
|
|
|
2015-02-02 22:38:54 +08:00
|
|
|
libcurl-symbols.3: $(srcdir)/symbols-in-versions $(srcdir)/mksymbolsmanpage.pl
|
2015-03-18 15:31:06 +08:00
|
|
|
perl $(srcdir)/mksymbolsmanpage.pl < $(srcdir)/symbols-in-versions > $@
|
2015-02-02 22:38:54 +08:00
|
|
|
|
2002-03-04 18:09:48 +08:00
|
|
|
html: $(HTMLPAGES)
|
2017-03-29 06:20:32 +08:00
|
|
|
cd opts && $(MAKE) html
|
2002-03-04 18:09:48 +08:00
|
|
|
|
|
|
|
.3.html:
|
|
|
|
$(MAN2HTML)
|
|
|
|
|
2003-08-12 17:08:05 +08:00
|
|
|
pdf: $(PDFPAGES)
|
2017-03-29 06:20:32 +08:00
|
|
|
cd opts && $(MAKE) pdf
|
2002-10-14 15:39:49 +08:00
|
|
|
|
2003-08-12 17:08:05 +08:00
|
|
|
.3.pdf:
|
|
|
|
@(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
|
|
|
|
groff -Tps -man $< >$$foo.ps; \
|
|
|
|
ps2pdf $$foo.ps $@; \
|
|
|
|
rm $$foo.ps; \
|
|
|
|
echo "converted $< to $@")
|
2015-03-19 06:21:46 +08:00
|
|
|
|
|
|
|
# Make sure each option man page is referenced in the main man page
|
|
|
|
TESTS = check-easy check-multi
|
|
|
|
LOG_COMPILER = $(PERL)
|
|
|
|
# The test fails if the log file contains any text
|
|
|
|
AM_LOG_FLAGS = -p -e 'die "$$_" if ($$_);'
|
|
|
|
|
|
|
|
check-easy: $(srcdir)/curl_easy_setopt.3 $(srcdir)/opts/CURLOPT*.3
|
|
|
|
OPTS="$$(ls $(srcdir)/opts/CURLOPT*.3 | $(SED) -e 's,^.*/,,' -e 's,\.3$$,,')" && \
|
|
|
|
for opt in $$OPTS; do grep "^\.IP $$opt$$" $(srcdir)/curl_easy_setopt.3 >/dev/null || echo Missing $$opt; done > $@
|
|
|
|
|
|
|
|
check-multi: $(srcdir)/curl_multi_setopt.3 $(srcdir)/opts/CURLMOPT*.3
|
|
|
|
OPTS="$$(ls $(srcdir)/opts/CURLMOPT*.3 | $(SED) -e 's,^.*/,,' -e 's,\.3$$,,')" && \
|
|
|
|
for opt in $$OPTS; do grep "^\.IP $$opt$$" $(srcdir)/curl_multi_setopt.3 >/dev/null || echo Missing $$opt; done > $@
|