1#*************************************************************************** 2# _ _ ____ _ 3# Project ___| | | | _ \| | 4# / __| | | | |_) | | 5# | (__| |_| | _ <| |___ 6# \___|\___/|_| \_\_____| 7# 8# Copyright (C) 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.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# SPDX-License-Identifier: curl 22# 23########################################################################### 24 25AUTOMAKE_OPTIONS = foreign no-dependencies 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 35CLEANFILES = $(HTMLPAGES) $(PDFPAGES) $(man_DISTMANS) 36 37EXTRA_DIST = $(man_MANS) CMakeLists.txt 38MAN2HTML= roffit --mandir=. $< >$@ 39 40SUFFIXES = .3 .html 41 42html: $(HTMLPAGES) 43 44.3.html: 45 $(MAN2HTML) 46 47pdf: $(PDFPAGES) 48 49.3.pdf: 50 @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \ 51 groff -Tps -man $< >$$foo.ps; \ 52 ps2pdf $$foo.ps $@; \ 53 rm $$foo.ps; \ 54 echo "converted $< to $@") 55 56mancheck: 57 @(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`) 58 rm -f in_temp 59 @(for a in $(man_MANS); do echo $$a >>in_temp; done) 60 sort in_temp > in_makefile 61 ls CURL*.3 > in_directory 62 -diff -u in_makefile in_directory 63 rm in_temp in_directory in_makefile 64