mirror of
https://git.proxmox.com/git/proxmox-secure-boot-support
synced 2025-10-04 08:14:14 +00:00

earlier this was part of another repo, now it's separate and there is just one package anymore, so use the correct DEB variable to refer to the binary debian packages that get build. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
41 lines
970 B
Makefile
41 lines
970 B
Makefile
include /usr/share/dpkg/pkg-info.mk
|
|
|
|
GITVERSION:=$(shell git rev-parse HEAD)
|
|
|
|
# amd64 only for now! else we need to generate d/control
|
|
DEB=proxmox-secure-boot-support_$(DEB_VERSION)_amd64.deb
|
|
|
|
BUILD_DIR=proxmox-secure-boot-support_$(DEB_VERSION)
|
|
DSC=proxmox-secure-boot-support_$(DEB_VERSION).dsc
|
|
|
|
.PHONY: deb dsc
|
|
deb: $(DEB)
|
|
dsc: $(DSC)
|
|
|
|
$(BUILD_DIR): debian
|
|
rm -rf $@ $@.tmp
|
|
mkdir $@.tmp
|
|
cp -a debian $@.tmp/
|
|
mv $@.tmp $@
|
|
|
|
$(DEB): $(BUILD_DIR)
|
|
cd $(BUILD_DIR); dpkg-buildpackage -b -uc -us
|
|
lintian $(DEB)
|
|
|
|
$(DSC): $(BUILD_DIR)
|
|
cd $(BUILD_DIR); dpkg-buildpackage -S -uc -us
|
|
lintian $(DSC)
|
|
|
|
sbuild: $(DSC)
|
|
sbuild $(DSC)
|
|
|
|
.PHONY: upload
|
|
upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
|
|
upload: $(DEB)
|
|
tar cf - $(DEB)|ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $(UPLOAD_DIST)
|
|
|
|
.PHONY: clean distclean
|
|
distclean: clean
|
|
clean:
|
|
rm -rf *~ proxmox-secure-boot-support*/ proxmox-secure-boot-support*.tar.* *.deb *.dsc *.changes *.buildinfo *.build
|