[pve-devel] [PATCH manager v2 02/17] buildsys: add %.1.pod make target to reduce duplication
Thomas Lamprecht
t.lamprecht at proxmox.com
Mon Mar 12 14:13:53 CET 2018
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
bin/Makefile | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/bin/Makefile b/bin/Makefile
index ad221d8e..c0b3f11b 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -41,21 +41,14 @@ all: ${SERVICE_MANS} ${CLI_MANS} pvemailforward
cat $<|pod2man -n $* -s 1 -r ${VERSION} -c "Proxmox Documentation" >$@.tmp
mv $@.tmp $@
+%.1.pod:
+ podselect $* > $@.tmp
+ mv $@.tmp $@
+
pveversion.1.pod: pveversion
- podselect $< > $@.tmp
- mv $@.tmp $@
-
pveupgrade.1.pod: pveupgrade
- podselect $< > $@.tmp
- mv $@.tmp $@
-
pvesh.1.pod: pvesh
- podselect $< > $@.tmp
- mv $@.tmp $@
-
pvereport.1.pod: pvereport
- podselect $< > $@.tmp
- mv $@.tmp $@
%.service-bash-completion:
perl -I.. -T -e "use PVE::Service::$*; PVE::Service::$*->generate_bash_completions();" >$@.tmp
--
2.14.2
More information about the pve-devel
mailing list