]> git.proxmox.com Git - proxmox-archive-keyring.git/blob - Makefile
initial commit
[proxmox-archive-keyring.git] / Makefile
1 include /usr/share/dpkg/pkg-info.mk
2
3 PACKAGE=proxmox-archive-keyring
4
5 GITVERSION:=$(shell git rev-parse HEAD)
6
7 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
8
9 BUILD_DIR=build
10
11 all: deb
12 deb: ${DEB}
13
14 ${DEB}: debian
15 rm -rf ${BUILD_DIR}
16 mkdir -p ${BUILD_DIR}/debian
17 cp -ar debian/* ${BUILD_DIR}/debian/
18 echo "git clone git://git.proxmox.com/git/proxmox-archive-keyring.git\\ngit checkout ${GITVERSION}" > ${BUILD_DIR}/debian/SOURCE
19 cd ${BUILD_DIR}; dpkg-buildpackage -b -uc -us
20 lintian ${DEB}
21
22 .PHONY: upload
23 upload: ${DEB}
24 tar cf - ${DEB}|ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist buster --arch ${ARCH}
25
26 .PHONY: distclean
27 distclean: clean
28
29 .PHONY: clean
30 clean:
31 rm -rf *~ ${BUILD_DIR} *.deb *.dsc *.changes *.buildinfo