bump version to 2.0-32
[pve-firewall.git] / Makefile
1 VERSION=2.0
2 PKGREL=32
3
4 PACKAGE=pve-firewall
5
6 PREFIX=/usr
7 BINDIR=${PREFIX}/bin
8 SBINDIR=${PREFIX}/sbin
9 MANDIR=${PREFIX}/share/man
10 DOCDIR=${PREFIX}/share/doc
11 MAN1DIR=${MANDIR}/man1/
12 PERLDIR=${PREFIX}/share/perl5
13
14 ARCH=amd64
15 GITVERSION:=$(shell cat .git/refs/heads/master)
16
17 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
18
19 all: ${DEB}
20
21 .PHONY: dinstall
22 dinstall: deb
23         dpkg -i ${DEB}
24
25
26 .PHONY: deb
27 deb ${DEB}: check
28         rm -rf build
29         rsync -a src/ build
30         rsync -a debian/ build/debian
31         echo "git clone git://git.proxmox.com/git/pve-firewall.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
32         # install
33         cd build; dpkg-buildpackage -rfakeroot -b -us -uc
34         lintian ${DEB}
35
36 .PHONY: check
37 check: 
38         make -C test check
39
40 .PHONY: clean
41 clean:  
42         make -C src clean
43         make -C test clean
44         rm -rf *~ debian/*~ example/*~ *.deb *.changes build ${PACKAGE}-*.tar.gz
45
46 .PHONY: distclean
47 distclean: clean
48
49
50 .PHONY: upload
51 upload: ${DEB}
52         tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload