1 #*************************************************************************** 2 # _ _ ____ _ 3 # Project ___| | | | _ \| | 4 # / __| | | | |_) | | 5 # | (__| |_| | _ <| |___ 6 # \___|\___/|_| \_\_____| 7 # 8 # Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel (a] 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 23 AUTOMAKE_OPTIONS = foreign no-dependencies 24 25 SUBDIRS = opts 26 27 include Makefile.inc 28 29 man_DISTMANS = $(man_MANS:.3=.3.dist) 30 31 HTMLPAGES = $(man_MANS:.3=.html) 32 33 PDFPAGES = $(man_MANS:.3=.pdf) 34 35 m4macrodir = $(datadir)/aclocal 36 dist_m4macro_DATA = libcurl.m4 37 38 CLEANFILES = $(HTMLPAGES) $(PDFPAGES) $(TESTS) $(man_DISTMANS) \ 39 libcurl-symbols.3 40 41 EXTRA_DIST = $(man_MANS) ABI symbols-in-versions symbols.pl \ 42 mksymbolsmanpage.pl CMakeLists.txt 43 MAN2HTML= roffit --mandir=. $< >$@ 44 45 SUFFIXES = .3 .html 46 47 libcurl-symbols.3: $(srcdir)/symbols-in-versions $(srcdir)/mksymbolsmanpage.pl 48 perl $(srcdir)/mksymbolsmanpage.pl < $(srcdir)/symbols-in-versions > $@ 49 50 html: $(HTMLPAGES) 51 cd opts && $(MAKE) html 52 53 .3.html: 54 $(MAN2HTML) 55 56 pdf: $(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 67 TESTS = check-easy check-multi 68 LOG_COMPILER = $(PERL) 69 # The test fails if the log file contains any text 70 AM_LOG_FLAGS = -p -e 'die "$$_" if ($$_);' 71 72 check-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 76 check-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