]> git.proxmox.com Git - pve-storage.git/blob - Makefile
separate packaging and source build system
[pve-storage.git] / Makefile
1 include /usr/share/dpkg/pkg-info.mk
2
3 PACKAGE=libpve-storage-perl
4
5 GITVERSION:=$(shell git rev-parse HEAD)
6
7 DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
8
9 all:
10
11 .PHONY: dinstall
12 dinstall: deb
13 dpkg -i $(DEB)
14
15 .PHONY: deb
16 deb: $(DEB)
17 $(DEB):
18 rm -rf build
19 cp -a src build
20 cp -a debian build/
21 echo "git clone git://git.proxmox.com/git/pve-storage.git\\ngit checkout $(GITVERSION)" >build/debian/SOURCE
22 cd build; dpkg-buildpackage -b -us -uc
23 lintian $(DEB)
24
25 .PHONY: clean distclean
26 distclean: clean
27 clean:
28 rm -rf build *.deb *.buildinfo *.changes
29
30 .PHONY: upload
31 upload: $(DEB)
32 tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye