]> git.proxmox.com Git - proxmox-ve.git/blob - Makefile
7b9564b1bfc8e93a0c3e4eb87a84099b08eef68a
[proxmox-ve.git] / Makefile
1 RELEASE=5.1
2 PACKAGE=proxmox-ve
3 PKGREL=39
4
5 GITVERSION:=$(shell git rev-parse HEAD)
6
7 PVE_DEB=${PACKAGE}_${RELEASE}-${PKGREL}_all.deb
8
9 BUILD_DIR=build
10
11 DEBS=${PVE_DEB}
12
13 all: deb
14 deb: ${DEBS}
15
16 ${PVE_DEB}: debian
17 rm -rf ${BUILD_DIR}
18 mkdir -p ${BUILD_DIR}/debian
19 cp -ar debian/* ${BUILD_DIR}/debian/
20 echo "git clone git://git.proxmox.com/git/proxmox-ve.git\\ngit checkout ${GITVERSION}" > ${BUILD_DIR}/debian/SOURCE
21 cd ${BUILD_DIR}; dpkg-buildpackage -b -uc -us
22 lintian ${PVE_DEB}
23
24 .PHONY: upload
25 upload: ${DEBS}
26 tar cf - ${DEBS}|ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
27
28 .PHONY: distclean
29 distclean: clean
30
31 .PHONY: clean
32 clean:
33 rm -rf *~ ${BUILD_DIR} *.deb *.dsc *.changes *.buildinfo