]> git.proxmox.com Git - pve-docs.git/commitdiff
simplify pve-doc-generator.mk
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 6 Apr 2016 10:54:35 +0000 (12:54 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 6 Apr 2016 10:54:35 +0000 (12:54 +0200)
pve-doc-generator.mk

index cdc51a4d10592373d3c14b1493ab4a9fc2185111..5668c217802e2f7533e60a71e67163f632c64b76 100644 (file)
@@ -76,16 +76,8 @@ pct.1: ${PCT_MAN1_SOURCES}
        a2x -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${DOCRELEASE}" -f manpage pct.adoc
        test -n "$${NOVIEW}" || man -l $@
 
-pct.conf.5: pct.conf.adoc pct.conf.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
-       a2x -a docinfo1 -a "manvolnum=5" -a "manversion=Release ${DOCRELEASE}" -f manpage pct.conf.adoc
-       test -n "$${NOVIEW}" || man -l $@
-
-vm.conf.5: vm.conf.adoc vm.conf.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
-       a2x -a docinfo1 -a "manvolnum=5" -a "manversion=Release ${DOCRELEASE}" -f manpage vm.conf.adoc
-       test -n "$${NOVIEW}" || man -l $@
-
-datacenter.conf.5: datacenter.conf.adoc datacenter.conf.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
-       a2x -a docinfo1 -a "manvolnum=5" -a "manversion=Release ${DOCRELEASE}" -f manpage datacenter.conf.adoc
+%.5: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
+       a2x -a docinfo1 -a "manvolnum=5" -a "manversion=Release ${DOCRELEASE}" -f manpage $*.adoc
        test -n "$${NOVIEW}" || man -l $@
 
 .PHONY: cleanup-docgen