]> git.proxmox.com Git - pve-firewall.git/blame - Makefile
Fix #1492: logger: print timestamps only if we have one
[pve-firewall.git] / Makefile
CommitLineData
29a94c79 1VERSION=3.0
4f7a4bdd 2PKGREL=2
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)
bb272dd3
DM
15GITVERSION:=$(shell cat .git/refs/heads/master)
16
17DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
18
19all: ${DEB}
20
21.PHONY: dinstall
22dinstall: deb
23 dpkg -i ${DEB}
24
25
26.PHONY: deb
567c9e27 27deb: ${DEB}
6e38c2a1
FG
28${DEB}: src test debian
29 make check
bb272dd3
DM
30 rm -rf build
31 rsync -a src/ build
32 rsync -a debian/ build/debian
33 echo "git clone git://git.proxmox.com/git/pve-firewall.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
34 # install
6d93cacf 35 cd build; dpkg-buildpackage -b -us -uc
bb272dd3
DM
36 lintian ${DEB}
37
ebb20753
DM
38.PHONY: check
39check:
40 make -C test check
41
bb272dd3
DM
42.PHONY: clean
43clean:
3f665549 44 make -C src clean
ebb20753 45 make -C test clean
3f665549 46 rm -rf *~ debian/*~ example/*~ *.deb *.changes build ${PACKAGE}-*.tar.gz
bb272dd3
DM
47
48.PHONY: distclean
49distclean: clean
50
51
52.PHONY: upload
53upload: ${DEB}
97f48025 54 tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}