• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#***************************************************************************
2#                                  _   _ ____  _
3#  Project                     ___| | | |  _ \| |
4#                             / __| | | | |_) | |
5#                            | (__| |_| |  _ <| |___
6#                             \___|\___/|_| \_\_____|
7#
8# Copyright (C) 1998 - 2017, 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.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
23AUTOMAKE_OPTIONS = foreign no-dependencies
24
25include Makefile.inc
26
27man_DISTMANS = $(man_MANS:.3=.3.dist)
28
29HTMLPAGES = $(man_MANS:.3=.html)
30
31PDFPAGES = $(man_MANS:.3=.pdf)
32
33CLEANFILES = $(HTMLPAGES) $(PDFPAGES) $(man_DISTMANS)
34
35EXTRA_DIST = $(man_MANS) CMakeLists.txt
36MAN2HTML= roffit --mandir=. $< >$@
37
38SUFFIXES = .3 .html
39
40html: $(HTMLPAGES)
41
42.3.html:
43	$(MAN2HTML)
44
45pdf: $(PDFPAGES)
46
47.3.pdf:
48	@(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
49	groff -Tps -man $< >$$foo.ps; \
50	ps2pdf $$foo.ps $@; \
51	rm $$foo.ps; \
52	echo "converted $< to $@")
53
54mancheck:
55	@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`
56	rm -f in_temp
57	@(for a in $(man_MANS); do echo $$a >>in_temp; done)
58	sort in_temp > in_makefile
59	ls CURL*.3 > in_directory
60	-diff -u in_makefile in_directory
61	rm in_temp in_directory in_makefile
62