1 #***************************************************************************
3 # Project ___| | | | _ \| |
5 # | (__| |_| | _ <| |___
6 # \___|\___/|_| \_\_____|
8 # Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
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.
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.
18 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 # KIND, either express or implied.
21 ###########################################################################
23 AUTOMAKE_OPTIONS = foreign no-dependencies
29 man_DISTMANS = $(man_MANS:.3=.3.dist)
31 HTMLPAGES = $(man_MANS:.3=.html)
33 PDFPAGES = $(man_MANS:.3=.pdf)
35 m4macrodir = $(datadir)/aclocal
36 dist_m4macro_DATA = libcurl.m4
38 CLEANFILES = $(HTMLPAGES) $(PDFPAGES) $(TESTS) $(man_DISTMANS) \
41 EXTRA_DIST = $(man_MANS) index.html ABI symbols-in-versions symbols.pl \
42 mksymbolsmanpage.pl CMakeLists.txt
43 MAN2HTML= roffit --mandir=. $< >$@
47 libcurl-symbols.3: $(srcdir)/symbols-in-versions $(srcdir)/mksymbolsmanpage.pl
48 perl $(srcdir)/mksymbolsmanpage.pl < $(srcdir)/symbols-in-versions > $@
51 cd opts && $(MAKE) html
57 cd opts && $(MAKE) pdf
60 @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
61 groff -Tps -man $< >$$foo.ps; \
64 echo "converted $< to $@")
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 ($$_);'
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 > $@
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 > $@