]> git.proxmox.com Git - pve-network.git/blame - Makefile
bump version to 0.9.8
[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
3b45559e
TL
10all: deb
11
0399edbb
AD
12.PHONY: dinstall
13dinstall: deb
0af69e3b 14 dpkg -i $(DEB)
0399edbb 15
6029cbb0
TL
16$(BUILDDIR): src debian
17 rm -rf $@ $@.tmp
18 cp -a src $@.tmp
19 cp -a debian $@.tmp/
20 echo "git clone git://git.proxmox.com/git/pve-network.git\\ngit checkout $(shell git rev-parse HEAD)" > $@.tmp/debian/SOURCE
21 mv $@.tmp $@
0399edbb
AD
22
23.PHONY: deb
0af69e3b
TL
24deb: $(DEB)
25$(DEB): $(BUILDDIR)
26 cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
27 lintian $(DEB)
0399edbb
AD
28
29.PHONY: dsc
ed8c931c
TL
30dsc: clean
31 $(MAKE) $(DSC)
32 lintian $(DSC)
33
0af69e3b 34$(DSC): $(BUILDDIR)
1867144b 35 cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
ed8c931c
TL
36
37sbuild: $(DSC)
38 sbuild $(DSC)
0399edbb
AD
39
40.PHONY: clean distclean
41distclean: clean
42clean:
ed8c931c 43 rm -rf *~ *.deb *.changes $(PACKAGE)-[0-9]*/ $(PACKAGE)*.tar* *.build *.buildinfo *.dsc
0399edbb 44
0399edbb 45.PHONY: upload
b01d4855 46upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
0af69e3b 47upload: $(DEB)
b01d4855 48 tar cf - $(DEB)|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST)