]> git.proxmox.com Git - pve-common.git/blame_incremental - Makefile
buildsys: remove useless variable definitions
[pve-common.git] / Makefile
... / ...
CommitLineData
1VERSION=5.0
2PKGREL=34
3
4PACKAGE=libpve-common-perl
5
6ARCH=all
7GITVERSION:=$(shell git rev-parse HEAD)
8
9DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
10
11all: ${DEB}
12
13.PHONY: dinstall
14dinstall: deb
15 dpkg -i ${DEB}
16
17
18.PHONY: deb
19deb ${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
29clean:
30 rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz *.buildinfo
31
32.PHONY: distclean
33distclean: clean
34
35.PHONY: check
36check:
37 $(MAKE) -C test check
38
39.PHONY: upload
40upload: ${DEB}
41 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
42