]> git.proxmox.com Git - dab.git/blobdiff - Makefile
include wheezy-updates
[dab.git] / Makefile
index 7e4ff620686c6a40f2f3fc9851fe14d196c12066..3ae86b8576a3ecadd8ac4bafe1584fd90ce66c32 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
+RELEASE=2.3
+
 VERSION=1.2
 PACKAGE=dab
-PKGREL=1
+PKGREL=5
 
 
 SCRIPTS=                                       \
@@ -23,6 +25,10 @@ PERLDIR=${PREFIX}/share/perl5/
 
 all: ${DEB}
 
+.PHONY: dinstall
+dinstall: deb
+       dpkg -i ${DEB}
+
 .PHONY: install
 install: dab dab.1 DAB.pm devices.tar.gz ${SCRIPTS}
        install -d ${DESTDIR}${SBINDIR}
@@ -63,3 +69,17 @@ dab.1: dab
 clean:
        rm -f ${DEB} dab.1 dab.pdf *~ 
 
+.PHONY: distclean
+distclean: clean
+
+.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
+
+