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