X-Git-Url: https://git.proxmox.com/?p=proxmox-widget-toolkit.git;a=blobdiff_plain;f=Makefile;h=0060296534805ef7beefb320fd1095138348e8ed;hp=f3bd2cf5046d9b07c92245b9261add3850683c11;hb=ed9ae47edda0702df0876eb3359dc7141d65f5bc;hpb=ecabd4379cdc61d0b8d3513fc53bce082d623827 diff --git a/Makefile b/Makefile index f3bd2cf..0060296 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,11 @@ include /usr/share/dpkg/pkg-info.mk +export DEB_VERSION_UPSTREAM_REVISION export PACKAGE=proxmox-widget-toolkit BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} -DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb +WT_DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb +WT_DEV_DEB=${PACKAGE}-dev_${DEB_VERSION_UPSTREAM_REVISION}_all.deb +DEBS=${WT_DEB} ${WT_DEV_DEB} DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc GITVERSION:=$(shell git rev-parse HEAD) @@ -15,10 +18,10 @@ ${BUILDDIR}: 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} @@ -31,14 +34,16 @@ lint: ${JSSRC} ${MAKE} -C src lint .PHONY: upload -upload: ${DEB} - tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist buster +upload: ${DEBS} + tar cf - ${WT_DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist buster + tar cf - ${WT_DEV_DEB} | ssh -X repoman@repo.proxmox.com -- upload --product devel --dist buster distclean: clean clean: + $(MAKE) -C src clean rm -rf ${BUILDDIR} ${BUILDDIR}.tmp *.tar.gz *.dsc *.deb *.changes *.buildinfo find . -name '*~' -exec rm {} ';' .PHONY: dinstall -dinstall: ${DEB} - dpkg -i ${DEB} +dinstall: ${DEBS} + dpkg -i ${DEBS}