]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - Makefile
add proxmoxlib to the clean target
[proxmox-widget-toolkit.git] / Makefile
index bc42c39c28bfb1929a59cdd2fb2f6f20882f61a5..e116a60df51af8fde4c2c38e870b27abdde84f5d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 PACKAGE=proxmox-widget-toolkit
 PKGVER=1.0
-PKGREL=7
+PKGREL=9
 
 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
 
@@ -65,7 +65,9 @@ lint: ${JSSRC}
        jslint ${JSSRC}
 
 proxmoxlib.js: ${JSSRC}
-       cat ${JSSRC} >$@.tmp
+       # add the version as comment in the file
+       echo "// ${PKGVER}-${PKGREL}" > $@.tmp
+       cat ${JSSRC} >> $@.tmp
        mv $@.tmp $@
 
 install: proxmoxlib.js
@@ -79,7 +81,7 @@ upload: ${DEB}
 distclean: clean
 
 clean:
-       rm -rf ./build *.deb *.changes *.buildinfo
+       rm -rf ./build *.deb *.changes *.buildinfo proxmoxlib.js
        find . -name '*~' -exec rm {} ';'
 
 .PHONY: dinstall