]> git.proxmox.com Git - vzquota.git/blobdiff - Makefile
add dinstall make target
[vzquota.git] / Makefile
index d5e7157e919fe4fed8e9e16dfd97c965ba037529..57406f838a5f84d528d84b0e3a445cd0b8757ea2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,5 +22,24 @@ ${DEB}: ${SRC}
        lintian ${DEB}
 
 
+.PHONY: upload
+upload: ${DEB}
+       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
+       mkdir -p /pve/${RELEASE}/extra
+       rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
+       rm -f /pve/${RELEASE}/extra/Packages*
+       cp ${DEB} /pve/${RELEASE}/extra
+       cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
+       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
+
+.PHONY: distclean
+distclean: clean
+
+.PHONY: clean
 clean:
-       rm -rf *~ debian/*~ ${SRCDIR} ${PACKAGE}_*.deb ${PACKAGE}_*.changes
\ No newline at end of file
+       rm -rf *~ debian/*~ ${SRCDIR} ${PACKAGE}_*.deb ${PACKAGE}_*.changes
+
+.PHONY: dinstall
+dinstall: ${DEB}
+       dpkg -i ${DEB}
+