From: Dietmar Maurer Date: Sat, 9 Apr 2016 11:40:31 +0000 (+0200) Subject: Makefile: cleanup, remove duplicate rules X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=commitdiff_plain;h=7c40c6317dd09a2dbb95834ef039384e8838f67a;hp=3377a78b84496514d9ca159ec23ec9e751927c68;ds=sidebyside Makefile: cleanup, remove duplicate rules --- diff --git a/Makefile b/Makefile index f321af2..a927829 100644 --- a/Makefile +++ b/Makefile @@ -98,32 +98,20 @@ all: pve-admin-guide.html %-nwdiag.svg: %.nwdiag nwdiag -T svg $*.nwdiag -o $@; -%.1: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES} - a2x -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${DOCRELEASE}" -f manpage $*.adoc - test -n "$${NOVIEW}" || man -l $@ - -pmxcfs.8.html: pmxcfs.adoc pmxcfs.8-cli.adoc ${PVE_COMMON_DOC_SOURCES} - asciidoc ${ADOC_MAN8_HTML_ARGS} -o $@ pmxcfs.adoc - test -n "$${NOVIEW}" || $(BROWSER) $@ & - %.1.html: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES} asciidoc ${ADOC_MAN1_HTML_ARGS} -o $@ $*.adoc test -n "$${NOVIEW}" || $(BROWSER) $@ & -%.8-synopsis.adoc: - perl -e "use PVE::Service::$(subst -,_,$*);print PVE::Service::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp - mv $@.tmp $@ - -%.8: %.adoc %.8-synopsis.adoc docinfo.xml - a2x -a docinfo1 -a "manvolnum=8" -a "manversion=Release ${DOCRELEASE}" -f manpage $*.adoc - test -n "$${NOVIEW}" || man -l $@ +pmxcfs.8.html: pmxcfs.adoc pmxcfs.8-cli.adoc ${PVE_COMMON_DOC_SOURCES} + asciidoc ${ADOC_MAN8_HTML_ARGS} -o $@ pmxcfs.adoc + test -n "$${NOVIEW}" || $(BROWSER) $@ & -%.8.html: %.adoc %.8-synopsis.adoc docinfo.xml +%.8.html: %.adoc %.8-synopsis.adoc ${PVE_COMMON_DOC_SOURCES} asciidoc ${ADOC_MAN8_HTML_ARGS} -o $@ $*.adoc test -n "$${NOVIEW}" || $(BROWSER) $@ & -%.5.html: %.adoc %.5-opts.adoc docinfo.xml +%.5.html: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES} asciidoc ${ADOC_MAN5_HTML_ARGS} -o $@ $*.adoc test -n "$${NOVIEW}" || $(BROWSER) $@ &