mirror of
https://git.proxmox.com/git/proxmox-archive-keyring
synced 2025-08-06 19:02:51 +00:00
46 lines
1003 B
Makefile
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
|