]> git.proxmox.com Git - pve-docs.git/blobdiff - Makefile
asciidoc-pve.in: add code to auto generate online help data
[pve-docs.git] / Makefile
index 37bebb85864431b9192e6e767a40321beee738f2..6125210b374f1866507f015dc1a220b88f70e4be 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ DOC_PACKAGE=pve-docs
 MEDIAWIKI_PACKAGE=pve-docs-mediawiki
 
 # also update debian/changelog
-PKGREL=5
+PKGREL=6
 
 GITVERSION:=$(shell cat .git/refs/heads/master)
 
@@ -113,7 +113,8 @@ SYSADMIN_PARTS=                                     \
        system-software-updates                 \
        pve-disk-health-monitoring              \
        local-lvm                               \
-       local-zfs
+       local-zfs                               \
+       system-timesync
 
 SYSADMIN_SOURCES=                              \
        $(addsuffix .adoc, ${SYSADMIN_PARTS})   \
@@ -175,10 +176,6 @@ pve-docs-mediawiki-import: pve-docs-mediawiki-import.in link-refs.json
        chmod +x pve-docs-mediawiki-import.tmp
        mv pve-docs-mediawiki-import.tmp pve-docs-mediawiki-import
 
-test: asciidoc-pve
-       ./asciidoc-pve compile-wiki-section pve-package-repos.adoc
-       #./asciidoc-pve compile-wiki-chapter ha-manager.adoc
-
 WIKI_IMPORTS=                                                                  \
        pve-usbstick-plain.html                                                 \
        getting-help-plain.html                                                 \
@@ -220,17 +217,17 @@ chapter-%.html: %.adoc asciidoc-pve ${PVE_COMMON_DOC_SOURCES}
 %.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 ${PVE_COMMON_DOC_SOURCES}
-       asciidoc ${ADOC_MAN8_HTML_ARGS} -o $@ pmxcfs.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 ${PVE_COMMON_DOC_SOURCES}
-       asciidoc ${ADOC_MAN8_HTML_ARGS} -o $@ $*.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 ${PVE_COMMON_DOC_SOURCES}
-       asciidoc ${ADOC_MAN5_HTML_ARGS} -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 ${PVE_COMMON_DOC_SOURCES}
-       asciidoc -s ${ADOC_MAN5_HTML_ARGS} -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 $@ $<
@@ -283,8 +280,10 @@ ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB}: index.html ${INDEX_INCLUDES} ${WIKI_IMPO
        # install files for pve-doc-generator package
        mkdir -p build/usr/share/${GEN_PACKAGE}
        mkdir -p build/usr/share/doc/${GEN_PACKAGE}
+       mkdir -p build/usr/bin
        install -m 0644 ${GEN_DEB_SOURCES} build/usr/share/${GEN_PACKAGE}
        install -m 0755 ${GEN_SCRIPTS} build/usr/share/${GEN_PACKAGE}
+       install -m 0755 asciidoc-pve build/usr/bin/
        # install files for pvedocs package
        mkdir -p build/usr/share/${DOC_PACKAGE}
        mkdir -p build/usr/share/doc/${DOC_PACKAGE}