mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-30 01:12:17 +00:00
buildsys: use dpkg-dev makefile helpers for pkg info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
edc6115643
commit
63a503c955
15
Makefile
15
Makefile
@ -1,12 +1,12 @@
|
|||||||
PACKAGE=proxmox-widget-toolkit
|
include /usr/share/dpkg/pkg-info.mk
|
||||||
PKGVER=1.0
|
|
||||||
PKGREL=28
|
|
||||||
|
|
||||||
BUILDDIR ?= ${PACKAGE}-${PKGVER}
|
PACKAGE=proxmox-widget-toolkit
|
||||||
|
|
||||||
|
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
|
||||||
GITVERSION:=$(shell git rev-parse HEAD)
|
GITVERSION:=$(shell git rev-parse HEAD)
|
||||||
|
|
||||||
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
|
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
||||||
DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc
|
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
|
||||||
|
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ lint: ${JSSRC}
|
|||||||
|
|
||||||
proxmoxlib.js: ${JSSRC}
|
proxmoxlib.js: ${JSSRC}
|
||||||
# add the version as comment in the file
|
# add the version as comment in the file
|
||||||
echo "// ${PKGVER}-${PKGREL}" > $@.tmp
|
echo "// ${DEB_VERSION_UPSTREAM_REVISION}" > $@.tmp
|
||||||
cat ${JSSRC} >> $@.tmp
|
cat ${JSSRC} >> $@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
@ -95,7 +95,6 @@ upload: ${DEB}
|
|||||||
tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
|
tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf ${BUILDDIR} *.tar.gz *.dsc *.deb *.changes *.buildinfo proxmoxlib.js
|
rm -rf ${BUILDDIR} *.tar.gz *.dsc *.deb *.changes *.buildinfo proxmoxlib.js
|
||||||
find . -name '*~' -exec rm {} ';'
|
find . -name '*~' -exec rm {} ';'
|
||||||
|
Loading…
Reference in New Issue
Block a user