X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=b570a7939ef1c50080b4080caa2805608958f370;hb=a23b14eeec3c851ca32dff3e664ae8701ddaefb9;hp=5494078db8ef954c7f2d24ab9b53543704c8a024;hpb=f00afaef559beefc56c8eed970c5b8ef2a550ada;p=pve-docs.git diff --git a/Makefile b/Makefile index 5494078..b570a79 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ DOC_PACKAGE=pve-docs MEDIAWIKI_PACKAGE=pve-docs-mediawiki # also update debian/changelog -PKGREL=3 +PKGREL=6 GITVERSION:=$(shell cat .git/refs/heads/master) @@ -15,7 +15,7 @@ ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) GEN_DEB=${GEN_PACKAGE}_${DOCRELEASE}-${PKGREL}_${ARCH}.deb DOC_DEB=${DOC_PACKAGE}_${DOCRELEASE}-${PKGREL}_all.deb MEDIAWIKI_DEB=${MEDIAWIKI_PACKAGE}_${DOCRELEASE}-${PKGREL}_all.deb -DOC_BUILDDEPS := pve-doc-generator, dblatex, source-highlight, inkscape, imagemagick +DOC_BUILDDEPS := asciidoc-dblatex, source-highlight, librsvg2-bin all: index.html @@ -123,15 +123,16 @@ pve-admin-guide.chunked: ${PVE_ADMIN_GUIDE_ADOCDEPENDS} a2x -a docinfo -a docinfo1 -a icons -f chunked pve-admin-guide.adoc PVE_DOCBOOK_CONF=-b $(shell pwd)/asciidoc/pve-docbook -f asciidoc/asciidoc-pve.conf +PVE_DBLATEX_OPTS='-p ./asciidoc/pve-dblatex.xsl -s asciidoc/dblatex-custom.sty -c asciidoc/dblatex-export.conf' pve-admin-guide-docinfo.xml: pve-admin-guide-docinfo.xml.in sed -e 's/@RELEASE@/${DOCRELEASE}/' <$< >$@ pve-admin-guide.pdf: ${PVE_ADMIN_GUIDE_ADOCDEPENDS} docinfo.xml pve-admin-guide-docinfo.xml - inkscape -z -D --export-pdf=proxmox-logo.pdf images/proxmox-logo.svg - inkscape -z -D --export-pdf=proxmox-ci-header.pdf images/proxmox-ci-header.svg + rsvg-convert -f pdf -o proxmox-logo.pdf images/proxmox-logo.svg + rsvg-convert -f pdf -o proxmox-ci-header.pdf images/proxmox-ci-header.svg grep ">Release ${DOCRELEASE}<" pve-admin-guide-docinfo.xml || (echo "wrong release in pve-admin-guide-docinfo.xml" && false); - a2x -a docinfo -a docinfo1 -f pdf -L --asciidoc-opts="${PVE_DOCBOOK_CONF}" --dblatex-opts "-p ./asciidoc/pve-dblatex.xsl -s asciidoc/dblatex-custom.sty" pve-admin-guide.adoc + a2x -a docinfo -a docinfo1 -f pdf -L --asciidoc-opts="${PVE_DOCBOOK_CONF}" --dblatex-opts ${PVE_DBLATEX_OPTS} pve-admin-guide.adoc rm proxmox-logo.pdf proxmox-ci-header.pdf pve-admin-guide.epub: ${PVE_ADMIN_GUIDE_ADOCDEPENDS} @@ -152,6 +153,9 @@ deb: rm -f ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB} make all-debs +.PHONY: all-debs +all-debs: ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB} + .PHONY: clean-build clean-build: rm -rf build @@ -188,7 +192,7 @@ $(GEN_DEB): $(GEN_DEB_SOURCES) asciidoc-pve asciidoc/mediawiki.conf doc-deb: $(DOC_DEB) $(DOC_DEB): index.html $(WIKI_IMPORTS) $(API_VIEWER_SOURCES) verify-images $(call prepare_build,$(DOC_PACKAGE)) - sed -i -e '/^Build-Depends/{s/$$/$(DOC_BUILDDEPS)/}' build-$(DOC_PACKAGE)/debian/control + sed -i -e '/^Build-Depends/{s/$$/, $(DOC_BUILDDEPS)/}' build-$(DOC_PACKAGE)/debian/control # install files for pvedocs package install -dm755 build-$(DOC_PACKAGE)/usr/share/${DOC_PACKAGE} install -dm755 build-$(DOC_PACKAGE)/usr/share/doc/${DOC_PACKAGE} @@ -213,7 +217,7 @@ $(MEDIAWIKI_DEB): pve-docs-mediawiki-import .PHONY: upload upload: ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB} - tar cf - ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB} | ssh repoman@repo.proxmox.com upload + tar cf - ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch .PHONY: update update: clean