X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=blobdiff_plain;f=Makefile;h=26c54fd628e97b6474ab49b2a8fdd80daee9469a;hp=f309eb3757ef67b3677d5a8d41f494592b707e40;hb=79ecedee413e06801ead7254948814500a63e663;hpb=567c9e27736f52f1682a62d61250addafaf9fc8f diff --git a/Makefile b/Makefile index f309eb3..26c54fd 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -VERSION=2.0 -PKGREL=33 +VERSION=3.0 +PKGREL=1 PACKAGE=pve-firewall @@ -11,7 +11,7 @@ DOCDIR=${PREFIX}/share/doc MAN1DIR=${MANDIR}/man1/ PERLDIR=${PREFIX}/share/perl5 -ARCH=amd64 +ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) GITVERSION:=$(shell cat .git/refs/heads/master) DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb @@ -25,13 +25,14 @@ dinstall: deb .PHONY: deb deb: ${DEB} -${DEB}: check +${DEB}: src test debian + make check rm -rf build rsync -a src/ build rsync -a debian/ build/debian echo "git clone git://git.proxmox.com/git/pve-firewall.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE # install - cd build; dpkg-buildpackage -rfakeroot -b -us -uc + cd build; dpkg-buildpackage -b -us -uc lintian ${DEB} .PHONY: check @@ -50,4 +51,4 @@ distclean: clean .PHONY: upload upload: ${DEB} - tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload + tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}