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