X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=Makefile;h=d1945919587c9c450544807c20595f9f17af63bc;hp=36537204804034e2ff8881a46750a9e27fcfae63;hb=5bf279bd97434367dc9485e83abc56bb6541a93e;hpb=63a0180693d69c0875c388e6ca7df46bca64efca diff --git a/Makefile b/Makefile index 3653720..d194591 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,12 @@ DGDIR=. ASCIIDOC_PVE=./asciidoc-pve -include ./pve-doc-generator.mk - GEN_PACKAGE=pve-doc-generator DOC_PACKAGE=pve-docs MEDIAWIKI_PACKAGE=pve-docs-mediawiki # also update debian/changelog -PKGREL=8 +PKGREL=10 GITVERSION:=$(shell cat .git/refs/heads/master) @@ -23,13 +21,16 @@ all: index.html .pve-doc-depends link-refs.json: $(wildcard *.adoc) scan-adoc-refs ./scan-adoc-refs *.adoc --depends .pve-doc-depends > link-refs.json -include .pve-doc-depends +pve-doc-generator.mk: .pve-doc-depends pve-doc-generator.mk.in + cat pve-doc-generator.mk.in .pve-doc-depends > $@.tmp + mv $@.tmp $@ + +include ./pve-doc-generator.mk GEN_DEB_SOURCES= \ pve-doc-generator.mk \ ${MANUAL_SOURCES} \ - ${PVESM_ADOCSOURCES} \ - pmxcfs.8-cli.adoc \ + pmxcfs.8-synopsis.adoc \ docinfo.xml GEN_SCRIPTS= \ @@ -73,27 +74,6 @@ BROWSER?=xdg-open %-nwdiag.svg: %.nwdiag nwdiag -T svg $*.nwdiag -o $@; -%-plain.html: asciidoc-pve %.adoc - ./asciidoc-pve compile-wiki -o $@ $*.adoc - -chapter-%.html: %.adoc asciidoc-pve ${PVE_COMMON_DOC_SOURCES} - ./asciidoc-pve compile-chapter -o $@ $*.adoc - -%.1.html: %.adoc %.1-synopsis.adoc asciidoc-pve ${PVE_COMMON_DOC_SOURCES} - ./asciidoc-pve compile-man-html -o $@ $*.adoc - -pmxcfs.8.html: pmxcfs.adoc pmxcfs.8-cli.adoc asciidoc-pve ${PVE_COMMON_DOC_SOURCES} - ./asciidoc-pve compile-man-html -o $@ pmxcfs.adoc - -%.8.html: %.adoc %.8-synopsis.adoc asciidoc-pve ${PVE_COMMON_DOC_SOURCES} - ./asciidoc-pve compile-man-html -o $@ $*.adoc - -%.5.html: %.adoc %.5-opts.adoc asciidoc-pve ${PVE_COMMON_DOC_SOURCES} - ./asciidoc-pve compile-man-html -o $@ $*.adoc - -%.5-plain.html: %.adoc %.5-opts.adoc asciidoc-pve ${PVE_COMMON_DOC_SOURCES} - ./asciidoc-pve compile-man-wiki -o $@ $*.adoc - README.html: README.adoc asciidoc ${ADOC_STDARG} -o $@ $< @@ -169,11 +149,11 @@ upload: ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB} .PHONY: update update: clean - rm -f *.5-opts.adoc *.1-synopsis.adoc *.8-synopsis.adoc + find . -regex '.*-\(opts\|synopsis\)\.adoc' -not -name pmxcfs.8-synopsis.adoc -exec rm -f \{\} \; rm -f api-viewer/apidata.js rm -f pve-firewall-macros.adoc pct-network-opts.adoc pct-mountpoint-opts.adoc make all clean: - rm -rf *.html *.pdf *.epub *.tmp *.1 *.5 *.8 *.deb *.changes build api-viewer/apidoc.js chapter-*.html *-plain.html chapter-*.html pve-admin-guide.chunked asciidoc-pve link-refs.json .asciidoc-pve-tmp_* pve-docs-mediawiki-import + rm -rf *.html *.pdf *.epub *.tmp *.1 *.5 *.8 *.deb *.changes build api-viewer/apidoc.js chapter-*.html *-plain.html chapter-*.html pve-admin-guide.chunked asciidoc-pve link-refs.json .asciidoc-pve-tmp_* pve-docs-mediawiki-import .pve-doc-depends pve-doc-generator.mk find . -name '*~' -exec rm {} ';'