]> git.proxmox.com Git - pve-common.git/blame - Makefile
bump version to 8.1.2
[pve-common.git] / Makefile
CommitLineData
8a27e4a4 1include /usr/share/dpkg/pkg-info.mk
e143e9d8
DM
2
3PACKAGE=libpve-common-perl
4
e143e9d8 5ARCH=all
b98a06a3 6
a9fa4157 7BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
dbaa6e52 8
a9fa4157
TL
9DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_$(ARCH).deb
10DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
e143e9d8 11
b1766d78 12all:
a9fa4157 13 $(MAKE) -C src
e143e9d8
DM
14
15.PHONY: dinstall
16dinstall: deb
a9fa4157 17 dpkg -i $(DEB)
e143e9d8 18
a9fa4157
TL
19$(BUILDDIR): src debian test
20 rm -rf $(BUILDDIR) $(BUILDDIR).tmp; mkdir $(BUILDDIR).tmp
21 cp -a -t $(BUILDDIR).tmp $^ Makefile
22 echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout $(shell git rev-parse HEAD)" > $(BUILDDIR).tmp/debian/SOURCE
23 mv $(BUILDDIR).tmp $(BUILDDIR)
b1766d78
FG
24
25.PHONY: deb
a9fa4157
TL
26deb: $(DEB)
27$(DEB): $(BUILDDIR)
28 cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
29 lintian $(DEB)
e143e9d8 30
b1766d78 31.PHONY: dsc
a9fa4157
TL
32dsc: $(DSC)
33$(DSC): $(BUILDDIR)
34 cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
35 lintian $(DSC)
b1766d78 36
5486a34a
TL
37sbuild: $(DSC)
38 sbuild $(DSC)
39
82ad3144 40.PHONY: clean distclean
e143e9d8 41distclean: clean
82ad3144 42clean:
a9fa4157 43 rm -rf *~ *.deb *.changes $(PACKAGE)-[0-9]*/ *.buildinfo *.build *.dsc *.tar.?z
e143e9d8 44
936218b8
WB
45.PHONY: check
46check:
47 $(MAKE) -C test check
e143e9d8 48
b1766d78
FG
49.PHONY: install
50install:
a9fa4157 51 $(MAKE) -C src install
b1766d78 52
e143e9d8 53.PHONY: upload
0bc01720 54upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
a9fa4157
TL
55upload: $(DEB)
56 tar cf - $(DEB)|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist $(UPLOAD_DIST)