5
0
mirror of git://git.proxmox.com/git/pve-firewall.git synced 2025-01-09 01:18:04 +03:00
pve-firewall/Makefile
2017-09-12 14:43:13 +02:00

55 lines
1.1 KiB
Makefile

VERSION=3.0
PKGREL=3
PACKAGE=pve-firewall
PREFIX=/usr
BINDIR=${PREFIX}/bin
SBINDIR=${PREFIX}/sbin
MANDIR=${PREFIX}/share/man
DOCDIR=${PREFIX}/share/doc
MAN1DIR=${MANDIR}/man1/
PERLDIR=${PREFIX}/share/perl5
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
GITVERSION:=$(shell cat .git/refs/heads/master)
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
all: ${DEB}
.PHONY: dinstall
dinstall: deb
dpkg -i ${DEB}
.PHONY: deb
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 -b -us -uc
lintian ${DEB}
.PHONY: check
check:
make -C test check
.PHONY: clean
clean:
make -C src clean
make -C test clean
rm -rf *~ debian/*~ example/*~ *.deb *.changes *.buildinfo build ${PACKAGE}-*.tar.gz
.PHONY: distclean
distclean: clean
.PHONY: upload
upload: ${DEB}
tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}