fix Razor macro
[pve-firewall.git] / Makefile
CommitLineData
29a94c79 1VERSION=3.0
d8ea08e3 2PKGREL=18
bb272dd3
DM
3
4PACKAGE=pve-firewall
5
6PREFIX=/usr
7BINDIR=${PREFIX}/bin
8SBINDIR=${PREFIX}/sbin
9MANDIR=${PREFIX}/share/man
10DOCDIR=${PREFIX}/share/doc
11MAN1DIR=${MANDIR}/man1/
12PERLDIR=${PREFIX}/share/perl5
13
43e33825 14ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
4382be0a 15GITVERSION:=$(shell git rev-parse HEAD)
bb272dd3
DM
16
17DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
05018f6e
WB
18DEB2=${PACKAGE}-dbgsym_${VERSION}-${PKGREL}_${ARCH}.deb
19DEBS=$(DEB) $(DEB2)
bb272dd3 20
05018f6e 21all: $(DEBS)
bb272dd3
DM
22
23.PHONY: dinstall
24dinstall: deb
05018f6e 25 dpkg -i $(DEBS)
bb272dd3
DM
26
27
28.PHONY: deb
05018f6e
WB
29deb: $(DEBS)
30$(DEB2): $(DEB)
31$(DEB): src test debian
6e38c2a1 32 make check
bb272dd3
DM
33 rm -rf build
34 rsync -a src/ build
35 rsync -a debian/ build/debian
36 echo "git clone git://git.proxmox.com/git/pve-firewall.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
37 # install
6d93cacf 38 cd build; dpkg-buildpackage -b -us -uc
05018f6e 39 lintian ${DEBS}
bb272dd3 40
ebb20753
DM
41.PHONY: check
42check:
43 make -C test check
44
bb272dd3
DM
45.PHONY: clean
46clean:
3f665549 47 make -C src clean
ebb20753 48 make -C test clean
f15b772b 49 rm -rf *~ debian/*~ example/*~ *.deb *.changes *.buildinfo build ${PACKAGE}-*.tar.gz
bb272dd3
DM
50
51.PHONY: distclean
52distclean: clean
53
54
55.PHONY: upload
05018f6e
WB
56upload: $(DEBS)
57 tar cf - $(DEBS) | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}