2011-03-11 18:14:32 -05:00
|
|
|
#***************************************************************************
|
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
# \___|\___/|_| \_\_____|
|
2002-03-04 05:09:48 -05:00
|
|
|
#
|
2015-02-02 09:38:54 -05:00
|
|
|
# Copyright (C) 1998 - 2015, 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
|
|
|
|
|
2006-04-10 17:55:48 -04:00
|
|
|
man_MANS = curl_easy_cleanup.3 curl_easy_getinfo.3 curl_easy_init.3 \
|
|
|
|
curl_easy_perform.3 curl_easy_setopt.3 curl_easy_duphandle.3 \
|
|
|
|
curl_formadd.3 curl_formfree.3 curl_getdate.3 curl_getenv.3 \
|
|
|
|
curl_slist_append.3 curl_slist_free_all.3 curl_version.3 \
|
|
|
|
curl_version_info.3 curl_escape.3 curl_unescape.3 curl_free.3 \
|
2015-07-13 16:15:55 -04:00
|
|
|
curl_strequal.3 curl_mprintf.3 curl_global_init.3 \
|
|
|
|
curl_global_cleanup.3 curl_multi_add_handle.3 curl_multi_cleanup.3 \
|
|
|
|
curl_multi_fdset.3 curl_multi_info_read.3 curl_multi_init.3 \
|
|
|
|
curl_multi_perform.3 curl_multi_remove_handle.3 curl_share_cleanup.3 \
|
|
|
|
curl_share_init.3 curl_share_setopt.3 libcurl.3 libcurl-easy.3 \
|
|
|
|
libcurl-multi.3 libcurl-share.3 libcurl-errors.3 curl_easy_strerror.3 \
|
2006-04-10 17:55:48 -04:00
|
|
|
curl_multi_strerror.3 curl_share_strerror.3 curl_global_init_mem.3 \
|
|
|
|
libcurl-tutorial.3 curl_easy_reset.3 curl_easy_escape.3 \
|
|
|
|
curl_easy_unescape.3 curl_multi_setopt.3 curl_multi_socket.3 \
|
2008-01-08 09:52:05 -05:00
|
|
|
curl_multi_timeout.3 curl_formget.3 curl_multi_assign.3 \
|
2009-05-11 16:32:50 -04:00
|
|
|
curl_easy_pause.3 curl_easy_recv.3 curl_easy_send.3 \
|
2015-07-13 16:15:55 -04:00
|
|
|
curl_multi_socket_action.3 curl_multi_wait.3 libcurl-symbols.3 \
|
|
|
|
libcurl-thread.3
|
2002-03-04 05:09:48 -05:00
|
|
|
|
2009-05-11 16:32:50 -04:00
|
|
|
HTMLPAGES = curl_easy_cleanup.html curl_easy_getinfo.html \
|
|
|
|
curl_easy_init.html curl_easy_perform.html curl_easy_setopt.html \
|
|
|
|
curl_easy_duphandle.html curl_formadd.html curl_formfree.html \
|
|
|
|
curl_getdate.html curl_getenv.html curl_slist_append.html \
|
|
|
|
curl_slist_free_all.html curl_version.html curl_version_info.html \
|
|
|
|
curl_escape.html curl_unescape.html curl_free.html curl_strequal.html \
|
|
|
|
curl_mprintf.html curl_global_init.html curl_global_cleanup.html \
|
|
|
|
curl_multi_add_handle.html curl_multi_cleanup.html \
|
|
|
|
curl_multi_fdset.html curl_multi_info_read.html curl_multi_init.html \
|
|
|
|
curl_multi_perform.html curl_multi_remove_handle.html \
|
|
|
|
curl_share_cleanup.html curl_share_init.html curl_share_setopt.html \
|
|
|
|
libcurl.html libcurl-multi.html libcurl-easy.html libcurl-share.html \
|
|
|
|
libcurl-errors.html curl_easy_strerror.html curl_multi_strerror.html \
|
|
|
|
curl_share_strerror.html curl_global_init_mem.html \
|
|
|
|
libcurl-tutorial.html curl_easy_reset.html curl_easy_escape.html \
|
|
|
|
curl_easy_unescape.html curl_multi_setopt.html curl_multi_socket.html \
|
|
|
|
curl_multi_timeout.html curl_formget.html curl_multi_assign.html \
|
|
|
|
curl_easy_pause.html curl_easy_recv.html curl_easy_send.html \
|
2015-07-13 16:15:55 -04:00
|
|
|
curl_multi_socket_action.html curl_multi_wait.html \
|
|
|
|
libcurl-symbols.html libcurl-thread.html
|
2002-03-04 05:09:48 -05:00
|
|
|
|
2009-05-11 16:32:50 -04:00
|
|
|
PDFPAGES = curl_easy_cleanup.pdf curl_easy_getinfo.pdf \
|
|
|
|
curl_easy_init.pdf curl_easy_perform.pdf curl_easy_setopt.pdf \
|
|
|
|
curl_easy_duphandle.pdf curl_formadd.pdf curl_formfree.pdf \
|
2015-07-13 16:15:55 -04:00
|
|
|
curl_getdate.pdf curl_getenv.pdf curl_slist_append.pdf \
|
|
|
|
curl_slist_free_all.pdf curl_version.pdf curl_version_info.pdf \
|
2009-05-11 16:32:50 -04:00
|
|
|
curl_escape.pdf curl_unescape.pdf curl_free.pdf curl_strequal.pdf \
|
|
|
|
curl_mprintf.pdf curl_global_init.pdf curl_global_cleanup.pdf \
|
|
|
|
curl_multi_add_handle.pdf curl_multi_cleanup.pdf curl_multi_fdset.pdf \
|
|
|
|
curl_multi_info_read.pdf curl_multi_init.pdf curl_multi_perform.pdf \
|
2015-07-13 16:15:55 -04:00
|
|
|
curl_multi_remove_handle.pdf curl_share_cleanup.pdf \
|
|
|
|
curl_share_init.pdf curl_share_setopt.pdf libcurl.pdf \
|
|
|
|
libcurl-multi.pdf libcurl-easy.pdf libcurl-share.pdf \
|
|
|
|
libcurl-errors.pdf curl_easy_strerror.pdf curl_multi_strerror.pdf \
|
|
|
|
curl_share_strerror.pdf curl_global_init_mem.pdf libcurl-tutorial.pdf \
|
|
|
|
curl_easy_reset.pdf curl_easy_escape.pdf curl_easy_unescape.pdf \
|
|
|
|
curl_multi_setopt.pdf curl_multi_socket.pdf curl_multi_timeout.pdf \
|
|
|
|
curl_formget.pdf curl_multi_assign.pdf curl_easy_pause.pdf \
|
|
|
|
curl_easy_recv.pdf curl_easy_send.pdf curl_multi_socket_action.pdf \
|
|
|
|
curl_multi_wait.pdf libcurl-symbols.pdf libcurl-thread.pdf
|
2002-10-14 03:39:49 -04:00
|
|
|
|
2013-10-13 13:39:42 -04:00
|
|
|
m4macrodir = $(datadir)/aclocal
|
|
|
|
dist_m4macro_DATA = libcurl.m4
|
|
|
|
|
2015-03-18 18:54:36 -04:00
|
|
|
CLEANFILES = $(HTMLPAGES) $(PDFPAGES) $(TESTS) libcurl-symbols.3
|
2003-08-12 04:51:23 -04:00
|
|
|
|
2013-10-13 13:39:42 -04:00
|
|
|
EXTRA_DIST = $(man_MANS) $(HTMLPAGES) index.html $(PDFPAGES) ABI \
|
2015-09-04 10:10:44 -04:00
|
|
|
symbols-in-versions symbols.pl mksymbolsmanpage.pl
|
2004-02-27 10:48:13 -05: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)
|
2015-11-19 17:23:11 -05: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)
|
2015-11-19 17:23:11 -05: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 > $@
|