2011-03-11 18:14:32 -05:00
|
|
|
#***************************************************************************
|
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
# \___|\___/|_| \_\_____|
|
2002-03-04 05:09:48 -05:00
|
|
|
#
|
2020-06-12 07:26:20 -04:00
|
|
|
# Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
|
2002-03-04 05:09:48 -05:00
|
|
|
#
|
2011-03-11 18:14:32 -05:00
|
|
|
# This software is licensed as described in the file COPYING, which
|
|
|
|
# you should have received as part of this distribution. The terms
|
2016-02-02 18:19:02 -05:00
|
|
|
# are also available at https://curl.haxx.se/docs/copyright.html.
|
2011-03-11 18:14:32 -05: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.
|
|
|
|
#
|
|
|
|
###########################################################################
|
2002-03-04 05:09:48 -05:00
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = foreign no-dependencies
|
|
|
|
|
2014-06-16 18:29:02 -04:00
|
|
|
SUBDIRS = opts
|
|
|
|
|
2017-02-25 17:38:25 -05:00
|
|
|
include Makefile.inc
|
2002-03-04 05:09:48 -05:00
|
|
|
|
2017-02-26 16:44:17 -05:00
|
|
|
man_DISTMANS = $(man_MANS:.3=.3.dist)
|
|
|
|
|
2017-02-25 09:08:41 -05:00
|
|
|
HTMLPAGES = $(man_MANS:.3=.html)
|
2002-03-04 05:09:48 -05:00
|
|
|
|
2017-02-25 09:08:41 -05:00
|
|
|
PDFPAGES = $(man_MANS:.3=.pdf)
|
2017-03-30 02:12:37 -04:00
|
|
|
|
2013-10-13 13:39:42 -04:00
|
|
|
m4macrodir = $(datadir)/aclocal
|
|
|
|
dist_m4macro_DATA = libcurl.m4
|
|
|
|
|
2017-02-26 16:44:17 -05:00
|
|
|
CLEANFILES = $(HTMLPAGES) $(PDFPAGES) $(TESTS) $(man_DISTMANS) \
|
|
|
|
libcurl-symbols.3
|
2003-08-12 04:51:23 -04:00
|
|
|
|
2020-06-12 07:26:20 -04:00
|
|
|
EXTRA_DIST = $(man_MANS) ABI.md symbols-in-versions symbols.pl \
|
2017-03-30 02:12:37 -04:00
|
|
|
mksymbolsmanpage.pl CMakeLists.txt
|
2016-03-22 05:46:08 -04:00
|
|
|
MAN2HTML= roffit --mandir=. $< >$@
|
2002-03-04 05:09:48 -05:00
|
|
|
|
2003-08-12 05:08:05 -04:00
|
|
|
SUFFIXES = .3 .html
|
2002-03-04 05:09:48 -05:00
|
|
|
|
2015-02-02 09:38:54 -05:00
|
|
|
libcurl-symbols.3: $(srcdir)/symbols-in-versions $(srcdir)/mksymbolsmanpage.pl
|
2015-03-18 03:31:06 -04:00
|
|
|
perl $(srcdir)/mksymbolsmanpage.pl < $(srcdir)/symbols-in-versions > $@
|
2015-02-02 09:38:54 -05:00
|
|
|
|
2002-03-04 05:09:48 -05:00
|
|
|
html: $(HTMLPAGES)
|
2017-03-28 18:20:32 -04:00
|
|
|
cd opts && $(MAKE) html
|
2002-03-04 05:09:48 -05:00
|
|
|
|
|
|
|
.3.html:
|
|
|
|
$(MAN2HTML)
|
|
|
|
|
2003-08-12 05:08:05 -04:00
|
|
|
pdf: $(PDFPAGES)
|
2017-03-28 18:20:32 -04:00
|
|
|
cd opts && $(MAKE) pdf
|
2002-10-14 03:39:49 -04:00
|
|
|
|
2003-08-12 05:08:05 -04: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-18 18:21:46 -04: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 > $@
|