mirror of
git://git.savannah.gnu.org/config.git
synced 2025-06-08 07:20:21 +12:00
doc: generalize make rules used to generate man pages
* doc/config.sub.x: New file. * Makefile (HELP2MAN): New variable. (doc/%.1): New rule. (doc/config.guess.1, doc/config.sub.1): Remove.
This commit is contained in:
parent
f1c1f29968
commit
965e90c772
@ -1,5 +1,10 @@
|
||||
2020-11-19 Dmitry V. Levin <ldv@altlinux.org>
|
||||
|
||||
* doc/config.sub.x: New file.
|
||||
* Makefile (HELP2MAN): New variable.
|
||||
(doc/%.1): New rule.
|
||||
(doc/config.guess.1, doc/config.sub.1): Remove.
|
||||
|
||||
* testsuite/config-sub.sh: Fix indentation that uses spaces before
|
||||
tabs.
|
||||
|
||||
|
11
Makefile
11
Makefile
@ -1,15 +1,11 @@
|
||||
HELP2MAN = help2man -N
|
||||
|
||||
all:
|
||||
|
||||
check: check-guess check-sub
|
||||
|
||||
manpages: doc/config.guess.1 doc/config.sub.1
|
||||
|
||||
doc/config.guess.1: config.guess
|
||||
help2man -N --include=doc/config.guess.x --output=$@ ./config.guess
|
||||
|
||||
doc/config.sub.1: config.sub
|
||||
help2man -N --name "validate and canonicalize a configuration triplet" --output=$@ ./config.sub
|
||||
|
||||
check-guess:
|
||||
cd testsuite && bash config-guess.sh && rm uname
|
||||
|
||||
@ -21,3 +17,6 @@ shellcheck:
|
||||
|
||||
sort:
|
||||
for f in config-guess.data config-sub.data ; do sort testsuite/$$f -o testsuite/$$f; done
|
||||
|
||||
doc/%.1: % doc/%.x
|
||||
$(HELP2MAN) --include=doc/$<.x --output=$@ ./$<
|
||||
|
2
doc/config.sub.x
Normal file
2
doc/config.sub.x
Normal file
@ -0,0 +1,2 @@
|
||||
[name]
|
||||
config.sub \- validate and canonicalize a configuration triplet
|
Loading…
x
Reference in New Issue
Block a user