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