]> git.proxmox.com Git - pve-docs.git/blobdiff - Makefile
add TOC to individual chapter files
[pve-docs.git] / Makefile
index be97bf0676860ac7ec8de65b07306f5c39d55a31..86c8bc9e2cddfd2d4233fe31bb555e82d0607d63 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -139,13 +139,13 @@ ADOC_MAN8_HTML_ARGS=-a "manvolnum=8" ${ADOC_STDARG} -a "revnumber=${DOCRELEASE}"
 
 BROWSER?=xdg-open
 
-all: pve-admin-guide.html
+all: index.html
 
 %-nwdiag.svg: %.nwdiag
        nwdiag -T svg $*.nwdiag -o $@;
 
 chapter-%.html: %.adoc ${PVE_COMMON_DOC_SOURCES}
-       asciidoc ${ADOC_STDARG} -o $@ $*.adoc
+       asciidoc ${ADOC_STDARG} -a toc -o $@ $*.adoc
        test -n "$${NOVIEW}" || $(BROWSER) $@ &
 
 %.1.html: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
@@ -258,12 +258,13 @@ upload: ${GEN_DEB} ${DOC_DEB}
        cd /pve/${DOCRELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
        umount /pve/${DOCRELEASE}; mount /pve/${DOCRELEASE} -o ro
 
+.PHONY: update
 update: clean
-       rm -f *.5-opts.adoc .1-synopsis.adoc .8-synopsis.adoc
+       rm -f *.5-opts.adoc *.1-synopsis.adoc *.8-synopsis.adoc
+       rm -f api-viewer/apidata.js
+       rm -f pve-firewall-macros.adoc
        make all
 
 clean:
-       rm -rf *.html *.pdf *.epub *.tmp *.1 *.5 *.8 *.deb *.changes build api-viewer/apidata.js api-viewer/apidoc.js chapter-*.html pve-admin-guide.chunked
+       rm -rf *.html *.pdf *.epub *.tmp *.1 *.5 *.8 *.deb *.changes build api-viewer/apidoc.js chapter-*.html pve-admin-guide.chunked
        find . -name '*~' -exec rm {} ';'
-
-