mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-06-20 14:10:42 +00:00
Makefile: cleanup, remove duplicate rules
This commit is contained in:
parent
3377a78b84
commit
7c40c6317d
22
Makefile
22
Makefile
@ -98,32 +98,20 @@ all: pve-admin-guide.html
|
|||||||
%-nwdiag.svg: %.nwdiag
|
%-nwdiag.svg: %.nwdiag
|
||||||
nwdiag -T svg $*.nwdiag -o $@;
|
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}
|
%.1.html: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
|
||||||
asciidoc ${ADOC_MAN1_HTML_ARGS} -o $@ $*.adoc
|
asciidoc ${ADOC_MAN1_HTML_ARGS} -o $@ $*.adoc
|
||||||
test -n "$${NOVIEW}" || $(BROWSER) $@ &
|
test -n "$${NOVIEW}" || $(BROWSER) $@ &
|
||||||
|
|
||||||
|
|
||||||
%.8-synopsis.adoc:
|
pmxcfs.8.html: pmxcfs.adoc pmxcfs.8-cli.adoc ${PVE_COMMON_DOC_SOURCES}
|
||||||
perl -e "use PVE::Service::$(subst -,_,$*);print PVE::Service::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
|
asciidoc ${ADOC_MAN8_HTML_ARGS} -o $@ pmxcfs.adoc
|
||||||
mv $@.tmp $@
|
test -n "$${NOVIEW}" || $(BROWSER) $@ &
|
||||||
|
|
||||||
%.8: %.adoc %.8-synopsis.adoc docinfo.xml
|
%.8.html: %.adoc %.8-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
|
||||||
a2x -a docinfo1 -a "manvolnum=8" -a "manversion=Release ${DOCRELEASE}" -f manpage $*.adoc
|
|
||||||
test -n "$${NOVIEW}" || man -l $@
|
|
||||||
|
|
||||||
%.8.html: %.adoc %.8-synopsis.adoc docinfo.xml
|
|
||||||
asciidoc ${ADOC_MAN8_HTML_ARGS} -o $@ $*.adoc
|
asciidoc ${ADOC_MAN8_HTML_ARGS} -o $@ $*.adoc
|
||||||
test -n "$${NOVIEW}" || $(BROWSER) $@ &
|
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
|
asciidoc ${ADOC_MAN5_HTML_ARGS} -o $@ $*.adoc
|
||||||
test -n "$${NOVIEW}" || $(BROWSER) $@ &
|
test -n "$${NOVIEW}" || $(BROWSER) $@ &
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user