]> git.proxmox.com Git - pve-docs.git/blobdiff - Makefile
add helper to correctly resolve links
[pve-docs.git] / Makefile
index a780a6d802e22e329393f66cd4767ee8953b73d6..562e22e15b7a350ec1746ed83e5630a2d38fdbb6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -102,6 +102,7 @@ GEN_SCRIPTS=                                        \
 
 INSTALLATION_SOURCES=                          \
        pve-usbstick.adoc                       \
+       pve-system-requirements.adoc            \
        pve-installation.adoc
 
 SYSADMIN_PARTS=                                        \
@@ -156,9 +157,18 @@ PVE_ADMIN_GUIDE_SOURCES=                   \
        GFDL.adoc                               \
        attributes.txt
 
+link-refs.json: scan-adoc-refs ${PVE_ADMIN_GUIDE_SOURCES}
+       ./scan-adoc-refs ${PVE_ADMIN_GUIDE_SOURCES} >link-refs.json
+
+asciidoc-pve: asciidoc-pve.in link-refs.json
+       cat asciidoc-pve.in link-refs.json >asciidoc-pve.tmp
+       chmod +x asciidoc-pve.tmp
+       mv asciidoc-pve.tmp asciidoc-pve
+
 WIKI_IMPORTS=                                                                  \
        section-pve-usbstick-plain.html                                         \
        section-getting-help-plain.html                                         \
+       section-pve-system-requirements-plain.html                              \
        $(addsuffix -plain.html, $(addprefix sysadmin-, ${SYSADMIN_PARTS}))     \
        $(addsuffix -plain.html, $(addprefix chapter-, ${CHAPTER_LIST}))        \
        $(addsuffix .5-plain.html, ${CONFIG_LIST})                              \
@@ -295,5 +305,5 @@ update: clean
        make all
 
 clean: 
-       rm -rf *.tmp.xml *.html *.pdf *.epub *.tmp *.1 *.5 *.8 *.deb *.changes build api-viewer/apidoc.js chapter-*.html chapter-*-plain.html chapter-*.html pve-admin-guide.chunked
+       rm -rf *.tmp.xml *.html *.pdf *.epub *.tmp *.1 *.5 *.8 *.deb *.changes build api-viewer/apidoc.js chapter-*.html chapter-*-plain.html chapter-*.html pve-admin-guide.chunked asciidoc-pve link-refs.json
        find . -name '*~' -exec rm {} ';'