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 27SUBDIRS = opts 28 29include Makefile.inc 30 31man_DISTMANS = $(man_MANS:.3=.3.dist) 32 33HTMLPAGES = $(man_MANS:.3=.html) 34 35PDFPAGES = $(man_MANS:.3=.pdf) 36 37m4macrodir = $(datadir)/aclocal 38dist_m4macro_DATA = libcurl.m4 39 40CLEANFILES = $(HTMLPAGES) $(PDFPAGES) $(TESTS) $(man_DISTMANS) \ 41 libcurl-symbols.3 42 43EXTRA_DIST = $(man_MANS) ABI.md symbols-in-versions symbols.pl \ 44 mksymbolsmanpage.pl CMakeLists.txt 45MAN2HTML= roffit --mandir=. $< >$@ 46 47SUFFIXES = .3 .html 48 49libcurl-symbols.3: $(srcdir)/symbols-in-versions $(srcdir)/mksymbolsmanpage.pl 50 perl $(srcdir)/mksymbolsmanpage.pl < $(srcdir)/symbols-in-versions > $@ 51 52html: $(HTMLPAGES) 53 cd opts && $(MAKE) html 54 55.3.html: 56 $(MAN2HTML) 57 58pdf: $(PDFPAGES) 59 cd opts && $(MAKE) pdf 60 61.3.pdf: 62 @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \ 63 groff -Tps -man $< >$$foo.ps; \ 64 ps2pdf $$foo.ps $@; \ 65 rm $$foo.ps; \ 66 echo "converted $< to $@") 67 68# Make sure each option man page is referenced in the main man page 69TESTS = check-easy check-multi 70LOG_COMPILER = $(PERL) 71# The test fails if the log file contains any text 72AM_LOG_FLAGS = -p -e 'die "$$_" if ($$_);' 73 74check-easy: $(srcdir)/curl_easy_setopt.3 $(srcdir)/opts/CURLOPT*.3 75 OPTS="$$(ls $(srcdir)/opts/CURLOPT*.3 | $(SED) -e 's,^.*/,,' -e 's,\.3$$,,')" && \ 76 for opt in $$OPTS; do grep "^\.IP $$opt$$" $(srcdir)/curl_easy_setopt.3 >/dev/null || echo Missing $$opt; done > $@ 77 78check-multi: $(srcdir)/curl_multi_setopt.3 $(srcdir)/opts/CURLMOPT*.3 79 OPTS="$$(ls $(srcdir)/opts/CURLMOPT*.3 | $(SED) -e 's,^.*/,,' -e 's,\.3$$,,')" && \ 80 for opt in $$OPTS; do grep "^\.IP $$opt$$" $(srcdir)/curl_multi_setopt.3 >/dev/null || echo Missing $$opt; done > $@ 81