]>
Commit | Line | Data |
---|---|---|
50b1017c DM |
1 | include /usr/share/dpkg/pkg-info.mk |
2 | ||
3 | PACKAGE=proxmox-backup | |
4 | ||
5 | GITVERSION:=$(shell git rev-parse HEAD) | |
6 | ||
7 | DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb | |
8 | ||
9 | DEBS=${DEB} | |
10 | ||
11 | BUILD_DIR=build | |
12 | ||
13 | ARCH=amd64 | |
a1d454b0 | 14 | DIST=bullseye |
50b1017c DM |
15 | |
16 | all: ${DEB} | |
17 | ||
18 | .PHONY: deb | |
19 | deb ${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 | |
29 | upload: ${DEBS} | |
30 | tar cf - ${DEBS}|ssh -X repoman@repo.proxmox.com -- upload --product pbs --dist ${DIST} --arch ${ARCH} | |
31 | ||
32 | clean: | |
33 | rm -rf ${BUILD_DIR} *.deb *.buildinfo *.changes | |
34 | find . -name '*~' -exec rm {} ';' |