]> git.proxmox.com Git - pve-common.git/blob - Makefile
buildsys: remove useless variable definitions
[pve-common.git] / Makefile
1 VERSION=5.0
2 PKGREL=34
3
4 PACKAGE=libpve-common-perl
5
6 ARCH=all
7 GITVERSION:=$(shell git rev-parse HEAD)
8
9 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
10
11 all: ${DEB}
12
13 .PHONY: dinstall
14 dinstall: deb
15 dpkg -i ${DEB}
16
17
18 .PHONY: deb
19 deb ${DEB}:
20 $(MAKE) -C test check
21 rm -rf build
22 rsync -a src/ build
23 rsync -a debian/ build/debian
24 echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
25 cd build; dpkg-buildpackage -b -us -uc
26 lintian ${DEB}
27
28 .PHONY: clean
29 clean:
30 rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz *.buildinfo
31
32 .PHONY: distclean
33 distclean: clean
34
35 .PHONY: check
36 check:
37 $(MAKE) -C test check
38
39 .PHONY: upload
40 upload: ${DEB}
41 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
42