X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=blobdiff_plain;f=Makefile;h=d1ab5ca1dd79c41f387bf7a7dd44b9e40e88bd11;hp=bd501492531af765812034555292750e35559f05;hb=401c141b36315dbbfaf88b293a44654a8610793b;hpb=c0c71b1bf7f41514d9da0e0e33a99c9534961201 diff --git a/Makefile b/Makefile index bd50149..d1ab5ca 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ VERSION=3.0 -PKGREL=3 +PKGREL=18 PACKAGE=pve-firewall @@ -12,20 +12,23 @@ MAN1DIR=${MANDIR}/man1/ PERLDIR=${PREFIX}/share/perl5 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) -GITVERSION:=$(shell cat .git/refs/heads/master) +GITVERSION:=$(shell git rev-parse HEAD) DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb +DEB2=${PACKAGE}-dbgsym_${VERSION}-${PKGREL}_${ARCH}.deb +DEBS=$(DEB) $(DEB2) -all: ${DEB} +all: $(DEBS) .PHONY: dinstall dinstall: deb - dpkg -i ${DEB} + dpkg -i $(DEBS) .PHONY: deb -deb: ${DEB} -${DEB}: src test debian +deb: $(DEBS) +$(DEB2): $(DEB) +$(DEB): src test debian make check rm -rf build rsync -a src/ build @@ -33,7 +36,7 @@ ${DEB}: src test debian echo "git clone git://git.proxmox.com/git/pve-firewall.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE # install cd build; dpkg-buildpackage -b -us -uc - lintian ${DEB} + lintian ${DEBS} .PHONY: check check: @@ -50,5 +53,5 @@ distclean: clean .PHONY: upload -upload: ${DEB} - tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} +upload: $(DEBS) + tar cf - $(DEBS) | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}