]> git.proxmox.com Git - pve-network.git/blame - Makefile
subnet: vnet: refactor IPAM related methods
[pve-network.git] / Makefile
CommitLineData
efe14cf0 1include /usr/share/dpkg/pkg-info.mk
0399edbb 2
efe14cf0 3PACKAGE=libpve-network-perl
0399edbb 4
0af69e3b 5BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
0399edbb 6
0af69e3b
TL
7DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
8DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
0399edbb 9
0399edbb
AD
10.PHONY: dinstall
11dinstall: deb
0af69e3b 12 dpkg -i $(DEB)
0399edbb 13
6029cbb0
TL
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 $@
0399edbb
AD
20
21.PHONY: deb
0af69e3b
TL
22deb: $(DEB)
23$(DEB): $(BUILDDIR)
24 cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
25 lintian $(DEB)
0399edbb
AD
26
27.PHONY: dsc
ed8c931c
TL
28dsc: clean
29 $(MAKE) $(DSC)
30 lintian $(DSC)
31
0af69e3b 32$(DSC): $(BUILDDIR)
1867144b 33 cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
ed8c931c
TL
34
35sbuild: $(DSC)
36 sbuild $(DSC)
0399edbb
AD
37
38.PHONY: clean distclean
39distclean: clean
40clean:
ed8c931c 41 rm -rf *~ *.deb *.changes $(PACKAGE)-[0-9]*/ $(PACKAGE)*.tar* *.build *.buildinfo *.dsc
0399edbb 42
0399edbb 43.PHONY: upload
b01d4855 44upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
0af69e3b 45upload: $(DEB)
b01d4855 46 tar cf - $(DEB)|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST)