X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=aa4402f4dac4f789793204543f9feba8692eb922;hb=97f480250eebc5a7463c8647e98a511fe15bf8a8;hp=ff687d2c1655dc67b5522c755f39906d91b99070;hpb=dc643b4d34e7fa1d8a8b544c5a367e454a9c3ba5;p=pve-firewall.git diff --git a/Makefile b/Makefile index ff687d2..aa4402f 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ VERSION=2.0 -PKGREL=32 +PKGREL=33 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 @@ -24,13 +24,15 @@ dinstall: deb .PHONY: deb -deb ${DEB}: check +deb: ${DEB} +${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 @@ -49,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}