proxmox-archive-keyring/Makefile
Thomas Lamprecht 135d98961f buildsys: upload package also to devel and pdm repositories
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-12-15 21:36:49 +01:00

46 lines
1003 B
Makefile

include /usr/share/dpkg/pkg-info.mk
PACKAGE=proxmox-archive-keyring
BUILDDIR=$(PACKAGE)-$(DEB_VERSION_UPSTREAM)
GITVERSION:=$(shell git rev-parse HEAD)
DSC=$(PACKAGE)_$(DEB_VERSION).dsc
DEB=$(PACKAGE)_$(DEB_VERSION)_all.deb
all: deb
$(BUILDDIR):
rm -rf $@ $@.tmp
mkdir -p $@.tmp/debian
cp -ar debian/* $@.tmp/debian/
echo "git clone git://git.proxmox.com/git/proxmox-archive-keyring.git\\ngit checkout $(GITVERSION)" > $@.tmp/debian/SOURCE
mv $@.tmp $@
deb: $(DEB)
$(DEB): $(BUILDDIR)
cd $(BUILDDIR); dpkg-buildpackage -b -uc -us
lintian $(DEB)
dsc: clean
$(MAKE) $(DSC)
lintian $(DSC)
$(DSC): $(BUILDDIR)
cd $(BUILDDIR); dpkg-buildpackage -S -uc -us
sbuild: $(DSC)
sbuild $(DSC)
.PHONY: upload
upload: $(DEB)
tar cf - $(DEB)|ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs,pbs-client,pdm,infra,devel --dist bookworm
.PHONY: distclean
distclean: clean
.PHONY: clean
clean:
rm -rf $(PACKAGE)-[0-9]*/
rm -f $(PACKAGE)*.tar* *.deb *.dsc *.changes *.build *.buildinfo