]> git.proxmox.com Git - pve-network.git/blob - Makefile
zones: IPAM config is optional for a zone
[pve-network.git] / Makefile
1 include /usr/share/dpkg/pkg-info.mk
2
3 PACKAGE=libpve-network-perl
4
5 BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
6
7 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
8 DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
9 TARGZ=${PACKAGE}_${PKGVER}-${PKGREL}.tar.gz
10
11 all:
12 ${MAKE} -C PVE
13
14 .PHONY: dinstall
15 dinstall: deb
16 dpkg -i ${DEB}
17
18 ${BUILDDIR}: PVE debian
19 rm -rf ${BUILDDIR}
20 rsync -a * ${BUILDDIR}
21 echo "git clone git://git.proxmox.com/git/pve-network.git\\ngit checkout $(shell git rev-parse HEAD)" > ${BUILDDIR}/debian/SOURCE
22
23 .PHONY: deb
24 deb: ${DEB}
25 ${DEB}: ${BUILDDIR}
26 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
27 lintian ${DEB}
28
29 .PHONY: dsc
30 dsc ${TARGZ}: ${DSC}
31 ${DSC}: ${BUILDDIR}
32 cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
33 lintian ${DSC}
34
35 .PHONY: clean distclean
36 distclean: clean
37 clean:
38 rm -rf *~ *.deb *.changes ${PACKAGE}-* *.buildinfo *.dsc *.tar.gz
39
40 .PHONY: test
41 test:
42 $(MAKE) -C test
43
44 .PHONY: install
45 install:
46 ${MAKE} -C PVE install
47
48 .PHONY: upload
49 upload: ${DEB}
50 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch
51