]> git.proxmox.com Git - proxmox-backup-meta.git/blame - Makefile
depend on proxmox-kernel-helper
[proxmox-backup-meta.git] / Makefile
CommitLineData
50b1017c
DM
1include /usr/share/dpkg/pkg-info.mk
2
3PACKAGE=proxmox-backup
4
5GITVERSION:=$(shell git rev-parse HEAD)
6
7DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
8
9DEBS=${DEB}
10
11BUILD_DIR=build
12
13ARCH=amd64
a1d454b0 14DIST=bullseye
50b1017c
DM
15
16all: ${DEB}
17
18.PHONY: deb
19deb ${CT_DEB}: ${DEB}
20${DEB}: debian
21 rm -rf ${BUILD_DIR}
22 mkdir -p ${BUILD_DIR}/debian
23 cp -ar debian/* ${BUILD_DIR}/debian/
24 echo "git clone git://git.proxmox.com/git/proxmox-backup-meta.git\\ngit checkout ${GITVERSION}" > ${BUILD_DIR}/debian/SOURCE
25 cd ${BUILD_DIR}; dpkg-buildpackage -b -uc -us
26 lintian ${DEBS}
27
28.PHONY: upload
29upload: ${DEBS}
30 tar cf - ${DEBS}|ssh -X repoman@repo.proxmox.com -- upload --product pbs --dist ${DIST} --arch ${ARCH}
31
32clean:
33 rm -rf ${BUILD_DIR} *.deb *.buildinfo *.changes
34 find . -name '*~' -exec rm {} ';'