5
0
mirror of git://git.proxmox.com/git/pve-firewall.git synced 2025-02-02 13:47:16 +03:00
pve-firewall/Makefile

54 lines
1.2 KiB
Makefile
Raw Normal View History

2017-03-09 14:04:44 +01:00
VERSION=3.0
PKGREL=18
2014-03-03 09:40:04 +01:00
PACKAGE=pve-firewall
BUILDDIR ?= ${PACKAGE}-${VERSION}
2014-03-03 09:40:04 +01:00
2017-02-10 13:57:59 +01:00
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
GITVERSION:=$(shell git rev-parse HEAD)
2014-03-03 09:40:04 +01:00
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc
DEB2=${PACKAGE}-dbgsym_${VERSION}-${PKGREL}_${ARCH}.deb
DEBS=$(DEB) $(DEB2)
2014-03-03 09:40:04 +01:00
all: $(DEBS)
2014-03-03 09:40:04 +01:00
.PHONY: dinstall
dinstall: deb
dpkg -i $(DEBS)
2014-03-03 09:40:04 +01:00
${BUILDDIR}:
rm -rf ${BUILDDIR}
rsync -a src/ debian ${BUILDDIR}
echo "git clone git://git.proxmox.com/git/pve-firewall.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
2014-03-03 09:40:04 +01:00
.PHONY: deb
deb: $(DEBS)
$(DEB2): $(DEB)
$(DEB): ${BUILDDIR} check
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
lintian ${DEBS}
2014-03-03 09:40:04 +01:00
.PHONY: dsc
dsc: ${DSC}
${DSC}: ${BUILDDIR}
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
lintian ${DSC}
.PHONY: check
check:
make -C test check
.PHONY: clean distclean
distclean: clean
clean:
2014-03-14 14:22:30 +01:00
make -C src clean
make -C test clean
rm -rf *~ debian/*~ example/*~ *.deb *.changes *.buildinfo ${BUILDDIR} ${PACKAGE}-*.tar.gz *.dsc
2014-03-03 09:40:04 +01:00
.PHONY: upload
upload: $(DEBS)
tar cf - $(DEBS) | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}