mirror of
https://github.com/moparisthebest/curl
synced 2024-11-05 00:55:04 -05:00
eac0dc6a3f
Make use of macro substitution of suffix patterns to remove duplication of manual names. This approach is portable according to http://pubs.opengroup.org/onlinepubs/009695399/utilities/make.html Closes https://github.com/curl/curl/pull/1287
369 lines
17 KiB
Makefile
369 lines
17 KiB
Makefile
#***************************************************************************
|
|
# _ _ ____ _
|
|
# Project ___| | | | _ \| |
|
|
# / __| | | | |_) | |
|
|
# | (__| |_| | _ <| |___
|
|
# \___|\___/|_| \_\_____|
|
|
#
|
|
# Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
#
|
|
# This software is licensed as described in the file COPYING, which
|
|
# you should have received as part of this distribution. The terms
|
|
# are also available at https://curl.haxx.se/docs/copyright.html.
|
|
#
|
|
# 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.
|
|
#
|
|
###########################################################################
|
|
|
|
AUTOMAKE_OPTIONS = foreign no-dependencies
|
|
|
|
man_MANS = \
|
|
CURLINFO_ACTIVESOCKET.3 \
|
|
CURLINFO_APPCONNECT_TIME.3 \
|
|
CURLINFO_CERTINFO.3 \
|
|
CURLINFO_CONDITION_UNMET.3 \
|
|
CURLINFO_CONNECT_TIME.3 \
|
|
CURLINFO_CONTENT_LENGTH_DOWNLOAD.3 \
|
|
CURLINFO_CONTENT_LENGTH_UPLOAD.3 \
|
|
CURLINFO_CONTENT_TYPE.3 \
|
|
CURLINFO_COOKIELIST.3 \
|
|
CURLINFO_EFFECTIVE_URL.3 \
|
|
CURLINFO_FILETIME.3 \
|
|
CURLINFO_FTP_ENTRY_PATH.3 \
|
|
CURLINFO_HEADER_SIZE.3 \
|
|
CURLINFO_HTTPAUTH_AVAIL.3 \
|
|
CURLINFO_HTTP_CONNECTCODE.3 \
|
|
CURLINFO_HTTP_VERSION.3 \
|
|
CURLINFO_LASTSOCKET.3 \
|
|
CURLINFO_LOCAL_IP.3 \
|
|
CURLINFO_LOCAL_PORT.3 \
|
|
CURLINFO_NAMELOOKUP_TIME.3 \
|
|
CURLINFO_NUM_CONNECTS.3 \
|
|
CURLINFO_OS_ERRNO.3 \
|
|
CURLINFO_PRETRANSFER_TIME.3 \
|
|
CURLINFO_PRIMARY_IP.3 \
|
|
CURLINFO_PRIMARY_PORT.3 \
|
|
CURLINFO_PRIVATE.3 \
|
|
CURLINFO_PROTOCOL.3 \
|
|
CURLINFO_PROXYAUTH_AVAIL.3 \
|
|
CURLINFO_PROXY_SSL_VERIFYRESULT.3 \
|
|
CURLINFO_REDIRECT_COUNT.3 \
|
|
CURLINFO_REDIRECT_TIME.3 \
|
|
CURLINFO_REDIRECT_URL.3 \
|
|
CURLINFO_REQUEST_SIZE.3 \
|
|
CURLINFO_RESPONSE_CODE.3 \
|
|
CURLINFO_RTSP_CLIENT_CSEQ.3 \
|
|
CURLINFO_RTSP_CSEQ_RECV.3 \
|
|
CURLINFO_RTSP_SERVER_CSEQ.3 \
|
|
CURLINFO_RTSP_SESSION_ID.3 \
|
|
CURLINFO_SCHEME.3 \
|
|
CURLINFO_SIZE_DOWNLOAD.3 \
|
|
CURLINFO_SIZE_UPLOAD.3 \
|
|
CURLINFO_SPEED_DOWNLOAD.3 \
|
|
CURLINFO_SPEED_UPLOAD.3 \
|
|
CURLINFO_SSL_ENGINES.3 \
|
|
CURLINFO_SSL_VERIFYRESULT.3 \
|
|
CURLINFO_STARTTRANSFER_TIME.3 \
|
|
CURLINFO_TLS_SESSION.3 \
|
|
CURLINFO_TLS_SSL_PTR.3 \
|
|
CURLINFO_TOTAL_TIME.3 \
|
|
CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE.3 \
|
|
CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE.3 \
|
|
CURLMOPT_MAXCONNECTS.3 \
|
|
CURLMOPT_MAX_HOST_CONNECTIONS.3 \
|
|
CURLMOPT_MAX_PIPELINE_LENGTH.3 \
|
|
CURLMOPT_MAX_TOTAL_CONNECTIONS.3 \
|
|
CURLMOPT_PIPELINING.3 \
|
|
CURLMOPT_PIPELINING_SERVER_BL.3 \
|
|
CURLMOPT_PIPELINING_SITE_BL.3 \
|
|
CURLMOPT_PUSHDATA.3 \
|
|
CURLMOPT_PUSHFUNCTION.3 \
|
|
CURLMOPT_SOCKETDATA.3 \
|
|
CURLMOPT_SOCKETFUNCTION.3 \
|
|
CURLMOPT_TIMERDATA.3 \
|
|
CURLMOPT_TIMERFUNCTION.3 \
|
|
CURLOPT_ABSTRACT_UNIX_SOCKET.3 \
|
|
CURLOPT_ACCEPTTIMEOUT_MS.3 \
|
|
CURLOPT_ACCEPT_ENCODING.3 \
|
|
CURLOPT_ADDRESS_SCOPE.3 \
|
|
CURLOPT_APPEND.3 \
|
|
CURLOPT_AUTOREFERER.3 \
|
|
CURLOPT_BUFFERSIZE.3 \
|
|
CURLOPT_CAINFO.3 \
|
|
CURLOPT_CAPATH.3 \
|
|
CURLOPT_CERTINFO.3 \
|
|
CURLOPT_CHUNK_BGN_FUNCTION.3 \
|
|
CURLOPT_CHUNK_DATA.3 \
|
|
CURLOPT_CHUNK_END_FUNCTION.3 \
|
|
CURLOPT_CLOSESOCKETDATA.3 \
|
|
CURLOPT_CLOSESOCKETFUNCTION.3 \
|
|
CURLOPT_CONNECTTIMEOUT.3 \
|
|
CURLOPT_CONNECTTIMEOUT_MS.3 \
|
|
CURLOPT_CONNECT_ONLY.3 \
|
|
CURLOPT_CONNECT_TO.3 \
|
|
CURLOPT_CONV_FROM_NETWORK_FUNCTION.3 \
|
|
CURLOPT_CONV_FROM_UTF8_FUNCTION.3 \
|
|
CURLOPT_CONV_TO_NETWORK_FUNCTION.3 \
|
|
CURLOPT_COOKIE.3 \
|
|
CURLOPT_COOKIEFILE.3 \
|
|
CURLOPT_COOKIEJAR.3 \
|
|
CURLOPT_COOKIELIST.3 \
|
|
CURLOPT_COOKIESESSION.3 \
|
|
CURLOPT_COPYPOSTFIELDS.3 \
|
|
CURLOPT_CRLF.3 \
|
|
CURLOPT_CRLFILE.3 \
|
|
CURLOPT_CUSTOMREQUEST.3 \
|
|
CURLOPT_DEBUGDATA.3 \
|
|
CURLOPT_DEBUGFUNCTION.3 \
|
|
CURLOPT_DEFAULT_PROTOCOL.3 \
|
|
CURLOPT_DIRLISTONLY.3 \
|
|
CURLOPT_DNS_CACHE_TIMEOUT.3 \
|
|
CURLOPT_DNS_INTERFACE.3 \
|
|
CURLOPT_DNS_LOCAL_IP4.3 \
|
|
CURLOPT_DNS_LOCAL_IP6.3 \
|
|
CURLOPT_DNS_SERVERS.3 \
|
|
CURLOPT_DNS_USE_GLOBAL_CACHE.3 \
|
|
CURLOPT_EGDSOCKET.3 \
|
|
CURLOPT_ERRORBUFFER.3 \
|
|
CURLOPT_EXPECT_100_TIMEOUT_MS.3 \
|
|
CURLOPT_FAILONERROR.3 \
|
|
CURLOPT_FILETIME.3 \
|
|
CURLOPT_FNMATCH_DATA.3 \
|
|
CURLOPT_FNMATCH_FUNCTION.3 \
|
|
CURLOPT_FOLLOWLOCATION.3 \
|
|
CURLOPT_FORBID_REUSE.3 \
|
|
CURLOPT_FRESH_CONNECT.3 \
|
|
CURLOPT_FTPPORT.3 \
|
|
CURLOPT_FTPSSLAUTH.3 \
|
|
CURLOPT_FTP_ACCOUNT.3 \
|
|
CURLOPT_FTP_ALTERNATIVE_TO_USER.3 \
|
|
CURLOPT_FTP_CREATE_MISSING_DIRS.3 \
|
|
CURLOPT_FTP_FILEMETHOD.3 \
|
|
CURLOPT_FTP_RESPONSE_TIMEOUT.3 \
|
|
CURLOPT_FTP_SKIP_PASV_IP.3 \
|
|
CURLOPT_FTP_SSL_CCC.3 \
|
|
CURLOPT_FTP_USE_EPRT.3 \
|
|
CURLOPT_FTP_USE_EPSV.3 \
|
|
CURLOPT_FTP_USE_PRET.3 \
|
|
CURLOPT_GSSAPI_DELEGATION.3 \
|
|
CURLOPT_HEADER.3 \
|
|
CURLOPT_HEADERDATA.3 \
|
|
CURLOPT_HEADERFUNCTION.3 \
|
|
CURLOPT_HEADEROPT.3 \
|
|
CURLOPT_HTTP200ALIASES.3 \
|
|
CURLOPT_HTTPAUTH.3 \
|
|
CURLOPT_HTTPGET.3 \
|
|
CURLOPT_HTTPHEADER.3 \
|
|
CURLOPT_HTTPPOST.3 \
|
|
CURLOPT_HTTPPROXYTUNNEL.3 \
|
|
CURLOPT_HTTP_CONTENT_DECODING.3 \
|
|
CURLOPT_HTTP_TRANSFER_DECODING.3 \
|
|
CURLOPT_HTTP_VERSION.3 \
|
|
CURLOPT_IGNORE_CONTENT_LENGTH.3 \
|
|
CURLOPT_INFILESIZE.3 \
|
|
CURLOPT_INFILESIZE_LARGE.3 \
|
|
CURLOPT_INTERFACE.3 \
|
|
CURLOPT_INTERLEAVEDATA.3 \
|
|
CURLOPT_INTERLEAVEFUNCTION.3 \
|
|
CURLOPT_IOCTLDATA.3 \
|
|
CURLOPT_IOCTLFUNCTION.3 \
|
|
CURLOPT_IPRESOLVE.3 \
|
|
CURLOPT_ISSUERCERT.3 \
|
|
CURLOPT_KEEP_SENDING_ON_ERROR.3 \
|
|
CURLOPT_KEYPASSWD.3 \
|
|
CURLOPT_KRBLEVEL.3 \
|
|
CURLOPT_LOCALPORT.3 \
|
|
CURLOPT_LOCALPORTRANGE.3 \
|
|
CURLOPT_LOGIN_OPTIONS.3 \
|
|
CURLOPT_LOW_SPEED_LIMIT.3 \
|
|
CURLOPT_LOW_SPEED_TIME.3 \
|
|
CURLOPT_MAIL_AUTH.3 \
|
|
CURLOPT_MAIL_FROM.3 \
|
|
CURLOPT_MAIL_RCPT.3 \
|
|
CURLOPT_MAXCONNECTS.3 \
|
|
CURLOPT_MAXFILESIZE.3 \
|
|
CURLOPT_MAXFILESIZE_LARGE.3 \
|
|
CURLOPT_MAXREDIRS.3 \
|
|
CURLOPT_MAX_RECV_SPEED_LARGE.3 \
|
|
CURLOPT_MAX_SEND_SPEED_LARGE.3 \
|
|
CURLOPT_NETRC.3 \
|
|
CURLOPT_NETRC_FILE.3 \
|
|
CURLOPT_NEW_DIRECTORY_PERMS.3 \
|
|
CURLOPT_NEW_FILE_PERMS.3 \
|
|
CURLOPT_NOBODY.3 \
|
|
CURLOPT_NOPROGRESS.3 \
|
|
CURLOPT_NOPROXY.3 \
|
|
CURLOPT_NOSIGNAL.3 \
|
|
CURLOPT_OPENSOCKETDATA.3 \
|
|
CURLOPT_OPENSOCKETFUNCTION.3 \
|
|
CURLOPT_PASSWORD.3 \
|
|
CURLOPT_PATH_AS_IS.3 \
|
|
CURLOPT_PINNEDPUBLICKEY.3 \
|
|
CURLOPT_PIPEWAIT.3 \
|
|
CURLOPT_PORT.3 \
|
|
CURLOPT_POST.3 \
|
|
CURLOPT_POSTFIELDS.3 \
|
|
CURLOPT_POSTFIELDSIZE.3 \
|
|
CURLOPT_POSTFIELDSIZE_LARGE.3 \
|
|
CURLOPT_POSTQUOTE.3 \
|
|
CURLOPT_POSTREDIR.3 \
|
|
CURLOPT_PREQUOTE.3 \
|
|
CURLOPT_PRE_PROXY.3 \
|
|
CURLOPT_PRIVATE.3 \
|
|
CURLOPT_PROGRESSDATA.3 \
|
|
CURLOPT_PROGRESSFUNCTION.3 \
|
|
CURLOPT_PROTOCOLS.3 \
|
|
CURLOPT_PROXY.3 \
|
|
CURLOPT_PROXYAUTH.3 \
|
|
CURLOPT_PROXYHEADER.3 \
|
|
CURLOPT_PROXYPASSWORD.3 \
|
|
CURLOPT_PROXYPORT.3 \
|
|
CURLOPT_PROXYTYPE.3 \
|
|
CURLOPT_PROXYUSERNAME.3 \
|
|
CURLOPT_PROXYUSERPWD.3 \
|
|
CURLOPT_PROXY_CAINFO.3 \
|
|
CURLOPT_PROXY_CAPATH.3 \
|
|
CURLOPT_PROXY_CRLFILE.3 \
|
|
CURLOPT_PROXY_KEYPASSWD.3 \
|
|
CURLOPT_PROXY_PINNEDPUBLICKEY.3 \
|
|
CURLOPT_PROXY_SERVICE_NAME.3 \
|
|
CURLOPT_PROXY_SSLCERT.3 \
|
|
CURLOPT_PROXY_SSLCERTTYPE.3 \
|
|
CURLOPT_PROXY_SSLKEY.3 \
|
|
CURLOPT_PROXY_SSLKEYTYPE.3 \
|
|
CURLOPT_PROXY_SSLVERSION.3 \
|
|
CURLOPT_PROXY_SSL_CIPHER_LIST.3 \
|
|
CURLOPT_PROXY_SSL_OPTIONS.3 \
|
|
CURLOPT_PROXY_SSL_VERIFYHOST.3 \
|
|
CURLOPT_PROXY_SSL_VERIFYPEER.3 \
|
|
CURLOPT_PROXY_TLSAUTH_PASSWORD.3 \
|
|
CURLOPT_PROXY_TLSAUTH_TYPE.3 \
|
|
CURLOPT_PROXY_TLSAUTH_USERNAME.3 \
|
|
CURLOPT_PROXY_TRANSFER_MODE.3 \
|
|
CURLOPT_PUT.3 \
|
|
CURLOPT_QUOTE.3 \
|
|
CURLOPT_RANDOM_FILE.3 \
|
|
CURLOPT_RANGE.3 \
|
|
CURLOPT_READDATA.3 \
|
|
CURLOPT_READFUNCTION.3 \
|
|
CURLOPT_REDIR_PROTOCOLS.3 \
|
|
CURLOPT_REFERER.3 \
|
|
CURLOPT_RESOLVE.3 \
|
|
CURLOPT_RESUME_FROM.3 \
|
|
CURLOPT_RESUME_FROM_LARGE.3 \
|
|
CURLOPT_RTSP_CLIENT_CSEQ.3 \
|
|
CURLOPT_RTSP_REQUEST.3 \
|
|
CURLOPT_RTSP_SERVER_CSEQ.3 \
|
|
CURLOPT_RTSP_SESSION_ID.3 \
|
|
CURLOPT_RTSP_STREAM_URI.3 \
|
|
CURLOPT_RTSP_TRANSPORT.3 \
|
|
CURLOPT_SASL_IR.3 \
|
|
CURLOPT_SEEKDATA.3 \
|
|
CURLOPT_SEEKFUNCTION.3 \
|
|
CURLOPT_SERVICE_NAME.3 \
|
|
CURLOPT_SHARE.3 \
|
|
CURLOPT_SOC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 \
|
|
CURLOPT_TCP_NODELAY.3 \
|
|
CURLOPT_TELNETOPTIONS.3 \
|
|
CURLOPT_TFTP_BLKSIZE.3 \
|
|
CURLOPT_TFTP_NO_OPTIONS.3 \
|
|
CURLOPT_TIMECONDITION.3 \
|
|
CURLOPT_TIMEOUT.3 \
|
|
CURLOPT_TIMEOUT_MS.3 \
|
|
CURLOPT_TIMEVALUE.3 \
|
|
CURLOPT_TLSAUTH_PASSWORD.3 \
|
|
CURLOPT_TLSAUTH_TYPE.3 \
|
|
CURLOPT_TLSAUTH_USERNAME.3 \
|
|
CURLOPT_TRANSFERTEXT.3 \
|
|
CURLOPT_TRANSFER_ENCODING.3 \
|
|
CURLOPT_UNIX_SOCKET_PATH.3 \
|
|
CURLOPT_UNRESTRICTED_AUTH.3 \
|
|
CURLOPT_UPLOAD.3 \
|
|
CURLOPT_URL.3 \
|
|
CURLOPT_USERAGENT.3 \
|
|
CURLOPT_USERNAME.3 \
|
|
CURLOPT_USERPWD.3 \
|
|
CURLOPT_USE_SSL.3 \
|
|
CURLOPT_VERBOSE.3 \
|
|
CURLOPT_WILDCARDMATCH.3 \
|
|
CURLOPT_WRITEDATA.3 \
|
|
CURLOPT_WRITEFUNCTION.3 \
|
|
CURLOPT_XFERINFODATA.3 \
|
|
CURLOPT_XFERINFOFUNCTION.3 \
|
|
CURLOPT_XOAUTH2_BEARER.3
|
|
|
|
HTMLPAGES = $(man_MANS:.3=.html)
|
|
|
|
PDFPAGES = $(man_MANS:.3=.pdf)
|
|
|
|
CLEANFILES = $(HTMLPAGES) $(PDFPAGES)
|
|
|
|
EXTRA_DIST = $(man_MANS)
|
|
MAN2HTML= roffit --mandir=. $< >$@
|
|
|
|
SUFFIXES = .3 .html
|
|
|
|
html: $(HTMLPAGES)
|
|
|
|
.3.html:
|
|
$(MAN2HTML)
|
|
|
|
pdf: $(PDFPAGES)
|
|
|
|
.3.pdf:
|
|
@(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
|
|
groff -Tps -man $< >$$foo.ps; \
|
|
ps2pdf $$foo.ps $@; \
|
|
rm $$foo.ps; \
|
|
echo "converted $< to $@")
|
|
|
|
mancheck:
|
|
@cd $(top_srcdir)/docs/libcurl/opts && ls `awk -F, '!/OBSOLETE/ && /^ CINIT/ { a=substr($$1, 9); print "CURLOPT_" a ".3"}' $(top_srcdir)/include/curl/curl.h`
|
|
rm -f in_temp
|
|
@(for a in $(man_MANS); do echo $$a >>in_temp; done)
|
|
sort in_temp > in_makefile
|
|
ls CURL*.3 > in_directory
|
|
-diff -u in_makefile in_directory
|
|
rm in_temp in_directory in_makefile
|