X-Git-Url: https://git.proxmox.com/?p=proxmox-acme.git;a=blobdiff_plain;f=Makefile;h=f672bbf564d99d1cb8b420a51bff04c0cbbc8dda;hp=1d487cbb20b1c4d6bce2025d0e8f442b65e3a9f6;hb=cd4a1aeb000ecbab6241e5f281041d5df35a52ba;hpb=9bd9d7a72e1ac651c71a2c84dd83073fbe6246fa diff --git a/Makefile b/Makefile index 1d487cb..f672bbf 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,15 @@ include /usr/share/dpkg/pkg-info.mk -PACKAGE=libproxmox-acme-perl +SRC=libproxmox-acme -BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} +BUILDDIR ?= ${SRC}-${DEB_VERSION_UPSTREAM} GITVERSION:=$(shell git rev-parse HEAD) -DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb -DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc +DEB_PERL=libproxmox-acme-perl_${DEB_VERSION_UPSTREAM_REVISION}_all.deb +DEB_ACME_PLUGS=libproxmox-acme-plugins_${DEB_VERSION_UPSTREAM_REVISION}_all.deb +DEBS=${DEB_PERL} ${DEB_ACME_PLUGS} + +DSC=${SRC}_${DEB_VERSION_UPSTREAM_REVISION}.dsc ACME_SUBMODULE="src/acme.sh" @@ -24,10 +27,10 @@ ${BUILDDIR}: src debian submodule mv ${BUILDDIR}.tmp ${BUILDDIR} .PHONY: deb -deb: ${DEB} -${DEB}: ${BUILDDIR} +deb: ${DEBS} +${DEBS}: ${BUILDDIR} cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc - lintian ${DEB} + lintian ${DEBS} .PHONY: dsc dsc: ${DSC} @@ -35,13 +38,14 @@ ${DSC}: ${BUILDDIR} cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d lintian ${DSC} -dinstall: ${DEB} - dpkg -i ${DEB} +dinstall: ${DEBS} + dpkg -i ${DEBS} .PHONY: clean clean: - rm -rf ${BUILDDIR} ${BUILDDIR}.tmp *.deb *.buildinfo *.changes *.dsc *.tar.gz + rm -rf ${SRC}-*/ ${BUILDDIR}.tmp *.deb *.buildinfo *.changes *.dsc *.tar.?z .PHONY: upload -upload: ${DEB} - tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster --arch ${DEB_BUILD_ARCH} +upload: ${DEBS} + tar cf - ${DEBS}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist bullseye --arch ${DEB_BUILD_ARCH} + tar cf - ${DEB_ACME_PLUGS}|ssh -X repoman@repo.proxmox.com -- upload --product pbs --dist bullseye --arch ${DEB_BUILD_ARCH}