From: Dietmar Maurer Date: Fri, 28 Sep 2012 06:32:58 +0000 (+0200) Subject: add upload make target X-Git-Url: https://git.proxmox.com/?p=vzquota.git;a=commitdiff_plain;h=9ebab9a4037d3137fd500eba8921fb6cc0cb703b add upload make target --- diff --git a/Makefile b/Makefile index d5e7157..8e44951 100644 --- a/Makefile +++ b/Makefile @@ -22,5 +22,20 @@ ${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 +