2016-12-17 07:23:04 +08:00
|
|
|
#***************************************************************************
|
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
# \___|\___/|_| \_\_____|
|
|
|
|
#
|
2023-01-02 20:51:48 +08:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2016-12-17 07:23:04 +08:00
|
|
|
#
|
|
|
|
# This software is licensed as described in the file COPYING, which
|
|
|
|
# you should have received as part of this distribution. The terms
|
2020-11-04 21:02:01 +08:00
|
|
|
# are also available at https://curl.se/docs/copyright.html.
|
2016-12-17 07:23:04 +08: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.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: curl
|
2022-05-17 17:16:50 +08:00
|
|
|
#
|
2016-12-17 07:23:04 +08:00
|
|
|
###########################################################################
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = foreign no-dependencies
|
|
|
|
|
2024-03-05 00:22:17 +08:00
|
|
|
MANPAGE = curl.1
|
|
|
|
ASCIIPAGE = curl.txt
|
|
|
|
|
2017-02-26 06:38:25 +08:00
|
|
|
include Makefile.inc
|
2016-11-16 22:43:16 +08:00
|
|
|
|
2024-03-08 18:22:12 +08:00
|
|
|
EXTRA_DIST = $(DPAGES) MANPAGE.md $(SUPPORT) CMakeLists.txt mainpage.idx
|
2016-11-16 22:43:16 +08:00
|
|
|
|
2023-02-13 22:34:54 +08:00
|
|
|
GEN = $(GN_$(V))
|
|
|
|
GN_0 = @echo " GENERATE" $@;
|
|
|
|
GN_1 =
|
|
|
|
GN_ = $(GN_0)
|
|
|
|
|
2024-04-05 00:00:33 +08:00
|
|
|
MANAGEN=$(top_srcdir)/scripts/managen
|
|
|
|
INCDIR=$(top_srcdir)/include
|
2024-03-08 18:22:12 +08:00
|
|
|
|
2024-03-05 00:22:17 +08:00
|
|
|
if BUILD_DOCS
|
|
|
|
CLEANFILES = $(MANPAGE) $(ASCIIPAGE)
|
2024-03-27 18:09:54 +08:00
|
|
|
man_MANS = $(MANPAGE)
|
2024-03-05 00:22:17 +08:00
|
|
|
|
|
|
|
all: $(MANPAGE) $(ASCIIPAGE)
|
|
|
|
|
|
|
|
endif
|
2016-11-16 22:43:16 +08:00
|
|
|
|
2024-03-08 18:22:12 +08:00
|
|
|
$(MANPAGE): $(DPAGES) $(SUPPORT) mainpage.idx Makefile.inc $(MANAGEN)
|
2024-04-05 00:00:33 +08:00
|
|
|
$(GEN)(rm -f $(MANPAGE) && @PERL@ $(MANAGEN) -d $(srcdir) -I $(INCDIR) mainpage $(DPAGES) > manpage.tmp.$$$$ && mv manpage.tmp.$$$$ $(MANPAGE))
|
2024-03-05 00:22:17 +08:00
|
|
|
|
2024-03-08 18:22:12 +08:00
|
|
|
$(ASCIIPAGE): $(DPAGES) $(SUPPORT) mainpage.idx Makefile.inc $(MANAGEN)
|
2024-04-05 00:00:33 +08:00
|
|
|
$(GEN)(rm -f $(ASCIIPAGE) && @PERL@ $(MANAGEN) -d $(srcdir) -I $(INCDIR) ascii $(DPAGES) > asciipage.tmp.$$$$ && mv asciipage.tmp.$$$$ $(ASCIIPAGE))
|
2024-01-25 18:14:29 +08:00
|
|
|
|
|
|
|
listhelp:
|
2024-07-04 19:38:18 +08:00
|
|
|
$(MANAGEN) -d $(srcdir) listhelp $(DPAGES) > $(top_builddir)/src/tool_listhelp.c
|
2024-03-08 18:22:12 +08:00
|
|
|
|
|
|
|
listcats:
|
|
|
|
@$(MANAGEN) listcats $(DPAGES)
|