From 075add9b3bc609c9fd1f066e322bb2fef298ced2 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 14 Jul 2022 17:54:16 +0200 Subject: [PATCH] docs: buildsys: use wild card target for generating synopsis Signed-off-by: Thomas Lamprecht --- docs/Makefile | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index 9500b828..d16692a4 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -95,15 +95,6 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) . all: ${MAN1_PAGES} ${MAN5_PAGES} -pxar/synopsis.rst: ${COMPILEDIR}/pxar - ${COMPILEDIR}/pxar printdoc > pxar/synopsis.rst - -pmtx/synopsis.rst: ${COMPILEDIR}/pmtx - ${COMPILEDIR}/pmtx printdoc > pmtx/synopsis.rst - -pmt/synopsis.rst: ${COMPILEDIR}/pmt - ${COMPILEDIR}/pmt printdoc > pmt/synopsis.rst - config/datastore/config.rst: ${COMPILEDIR}/docgen ${COMPILEDIR}/docgen datastore.cfg >$@ @@ -131,24 +122,12 @@ config/tape/config.rst: ${COMPILEDIR}/docgen config/tape-job/config.rst: ${COMPILEDIR}/docgen ${COMPILEDIR}/docgen tape-job.cfg >$@ -proxmox-tape/synopsis.rst: ${COMPILEDIR}/proxmox-tape - ${COMPILEDIR}/proxmox-tape printdoc > proxmox-tape/synopsis.rst - -proxmox-backup-client/synopsis.rst: ${COMPILEDIR}/proxmox-backup-client - ${COMPILEDIR}/proxmox-backup-client printdoc > proxmox-backup-client/synopsis.rst +%/synopsis.rst: ${COMPILEDIR}/% + $< printdoc > $@ proxmox-backup-client/catalog-shell-synopsis.rst: ${COMPILEDIR}/dump-catalog-shell-cli ${COMPILEDIR}/dump-catalog-shell-cli > proxmox-backup-client/catalog-shell-synopsis.rst -proxmox-backup-manager/synopsis.rst: ${COMPILEDIR}/proxmox-backup-manager - ${COMPILEDIR}/proxmox-backup-manager printdoc > proxmox-backup-manager/synopsis.rst - -proxmox-file-restore/synopsis.rst: ${COMPILEDIR}/proxmox-file-restore - ${COMPILEDIR}/proxmox-file-restore printdoc > proxmox-file-restore/synopsis.rst - -proxmox-backup-debug/synopsis.rst: ${COMPILEDIR}/proxmox-backup-debug - ${COMPILEDIR}/proxmox-backup-debug printdoc > proxmox-backup-debug/synopsis.rst - ${MAN1_PAGES} ${MAN5_PAGES}: man-pages .PHONY: man-pages