5
0
mirror of git://git.proxmox.com/git/pve-firewall.git synced 2025-01-23 02:04:19 +03:00
pve-firewall/Makefile

52 lines
1.2 KiB
Makefile
Raw Normal View History

include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/architecture.mk
2014-03-03 09:40:04 +01:00
PACKAGE=pve-firewall
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
GITVERSION:=$(shell git rev-parse HEAD)
2014-03-03 09:40:04 +01:00
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
DEB2=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_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
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 bullseye --arch ${DEB_BUILD_ARCH}