[pmg-devel] [PATCH pmg-api 3/3] bsys: add pmg-system-report + manpage to Makefile
Stoiko Ivanov
s.ivanov at proxmox.com
Fri Feb 8 12:35:48 CET 2019
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
Makefile | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 9e37716..87a834a 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ REPOID=`./repoid.pl .git`
SERVICES = pmgdaemon pmgproxy pmgtunnel pmgmirror
CLITOOLS = pmgdb pmgconfig pmgperf pmgcm pmgqm pmgreport pmgversion pmgupgrade pmgsubscription pmgbackup
-CLISCRIPTS = pmg-smtp-filter pmgsh pmgpolicy pmgbanner
+CLISCRIPTS = pmg-smtp-filter pmgsh pmgpolicy pmgbanner pmg-system-report
CRONSCRIPTS = pmg-hourly pmg-daily
CLI_CLASSES = $(addprefix PMG/CLI/, $(addsuffix .pm, ${CLITOOLS}))
@@ -28,7 +28,7 @@ SERVICE_UNITS = $(addprefix debian/, $(addsuffix .service, ${SERVICES}))
TIMER_UNITS = $(addprefix debian/, $(addsuffix .timer, ${CRONSCRIPTS} pmgspamreport pmgreport))
CLI_BINARIES = $(addprefix bin/, ${CLITOOLS} ${CLISCRIPTS} ${CRONSCRIPTS})
-CLI_MANS = $(addsuffix .1, ${CLITOOLS}) pmgsh.1
+CLI_MANS = $(addsuffix .1, ${CLITOOLS}) pmgsh.1 pmg-system-report.1
SERVICE_MANS = $(addsuffix .8, ${SERVICES}) pmg-smtp-filter.8 pmgpolicy.8
@@ -83,6 +83,7 @@ LIBSOURCES = \
PMG/LDAPCache.pm \
PMG/DBTools.pm \
PMG/Quarantine.pm \
+ PMG/Report.pm \
PMG/RuleDB/Group.pm \
PMG/RuleDB/Rule.pm \
PMG/RuleDB/Object.pm \
@@ -224,3 +225,8 @@ clean:
.PHONY: dinstall
dinstall: ${DEB}
dpkg -i ${DEB}
+
+%.1: bin/%
+ rm -f $@
+ podselect $< |pod2man -n $(notdir $*) -s 1 -r ${PKGVER} -c "Proxmox Documentation" >$@.tmp
+ mv $@.tmp $@
--
2.11.0
More information about the pmg-devel
mailing list