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