]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
man: add ip-netns(8) as generation target
authorBrian Norris <briannorris@chromium.org>
Tue, 7 Apr 2020 17:43:05 +0000 (10:43 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 20 Apr 2020 16:39:27 +0000 (09:39 -0700)
Prepare for adding new variable substitutions. Unify the sed rules while
we're at it, since there's no need to write this out 4 times.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
man/man8/.gitignore
man/man8/Makefile
man/man8/ip-netns.8.in [moved from man/man8/ip-netns.8 with 100% similarity]

index 0c3d15047fde2b32cdb45cecc7fbe4075e913fa2..7b08e91144559ed0d07d3928dceaccbb4009ab58 100644 (file)
@@ -1,4 +1,5 @@
 # these pages are built
 ip-address.8
 ip-link.8
+ip-netns.8
 ip-route.8
index 0269e17406b713b3575262793c7a2772e84d3e3c..9c62312396a2a903e42e5cdf81e13bb50a8165b0 100644 (file)
@@ -1,17 +1,11 @@
 # SPDX-License-Identifier: GPL-2.0
-TARGETS = ip-address.8 ip-link.8 ip-route.8
+TARGETS = ip-address.8 ip-link.8 ip-netns.8 ip-route.8
 
 MAN8PAGES = $(TARGETS) $(filter-out $(TARGETS),$(wildcard *.8))
 
 all: $(TARGETS)
 
-ip-address.8: ip-address.8.in
-       sed "s|@SYSCONFDIR@|$(CONFDIR)|g" $< > $@
-
-ip-link.8: ip-link.8.in
-       sed "s|@SYSCONFDIR@|$(CONFDIR)|g" $< > $@
-
-ip-route.8: ip-route.8.in
+%: %.in
        sed "s|@SYSCONFDIR@|$(CONFDIR)|g" $< > $@
 
 distclean: clean
similarity index 100%
rename from man/man8/ip-netns.8
rename to man/man8/ip-netns.8.in