]> git.proxmox.com Git - pve-network.git/blob - Makefile
api: take partial configs for PUT /cluster/sdn/vnets/<id>
[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
10 .PHONY: dinstall
11 dinstall: deb
12 dpkg -i $(DEB)
13
14 $(BUILDDIR): src debian
15 rm -rf $@ $@.tmp
16 cp -a src $@.tmp
17 cp -a debian $@.tmp/
18 echo "git clone git://git.proxmox.com/git/pve-network.git\\ngit checkout $(shell git rev-parse HEAD)" > $@.tmp/debian/SOURCE
19 mv $@.tmp $@
20
21 .PHONY: deb
22 deb: $(DEB)
23 $(DEB): $(BUILDDIR)
24 cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
25 lintian $(DEB)
26
27 .PHONY: dsc
28 dsc: clean
29 $(MAKE) $(DSC)
30 lintian $(DSC)
31
32 $(DSC): $(BUILDDIR)
33 cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
34
35 sbuild: $(DSC)
36 sbuild $(DSC)
37
38 .PHONY: clean distclean
39 distclean: clean
40 clean:
41 rm -rf *~ *.deb *.changes $(PACKAGE)-[0-9]*/ $(PACKAGE)*.tar* *.build *.buildinfo *.dsc
42
43 .PHONY: upload
44 upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
45 upload: $(DEB)
46 tar cf - $(DEB)|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST)