]> git.proxmox.com Git - pve-docs.git/blobdiff - Makefile
close #4031: vm: import: simplify example for creating VM from existing disk
[pve-docs.git] / Makefile
index 98b6b44dc213ce7bd643714a2d37a12d4e24e47f..df339c2ef472261c33c97a5ccd38c8722ffd4649 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -63,6 +63,11 @@ GEN_SCRIPTS=                                 \
        gen-pve-firewall-vm-opts.pl             \
        gen-output-format-opts.pl
 
+API_VIEWER_FILES=                                                      \
+       api-viewer/apidata.js                                           \
+       api-viewer/PVEAPI.js                                            \
+       /usr/share/javascript/proxmox-widget-toolkit-dev/APIViewer.js
+
 API_VIEWER_SOURCES=                            \
        api-viewer/index.html                   \
        api-viewer/apidoc.js
@@ -149,8 +154,9 @@ pve-admin-guide.epub: ${PVE_ADMIN_GUIDE_ADOCDEPENDS}
 api-viewer/apidata.js: extractapi.pl
        ./extractapi.pl >$@
 
-api-viewer/apidoc.js: api-viewer/apidata.js api-viewer/PVEAPI.js
-       cat api-viewer/apidata.js api-viewer/PVEAPI.js >$@
+api-viewer/apidoc.js: ${API_VIEWER_FILES}
+       cat ${API_VIEWER_FILES} >$@.tmp
+       mv $@.tmp $@
 
 .PHONY: dinstall
 dinstall: ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB}
@@ -219,7 +225,7 @@ mediawiki-install: pve-docs-mediawiki-import
 
 .PHONY: upload
 upload: ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB}
-       tar cf - ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist buster
+       tar cf - ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye
 
 .PHONY: update
 update: