buildsys: add dsc target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-03-30 12:56:57 +01:00
parent b7d94d3e1a
commit f0e4870b4f
3 changed files with 19 additions and 7 deletions

View File

@ -2,7 +2,10 @@ PACKAGE=proxmox-widget-toolkit
PKGVER=1.0
PKGREL=24
BUILDDIR ?= build
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc
DESTDIR=
@ -54,14 +57,22 @@ JSSRC= \
all:
${BUILDDIR}:
rm -rf ${BUILDDIR}
rsync -a * ${BUILDDIR}
.PHONY: deb
deb: ${DEB}
${DEB}:
rm -rf build
rsync -a * build
cd build; dpkg-buildpackage -b -us -uc
${DEB}: ${BUILDDIR}
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
lintian ${DEB}
.PHONY: dsc
dsc: ${DSC}
${DSC}: ${BUILDDIR}
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
lintian ${DSC}
.PHONY: lint
lint: ${JSSRC}
jslint ${JSSRC}
@ -83,7 +94,7 @@ upload: ${DEB}
distclean: clean
clean:
rm -rf ./build *.deb *.changes *.buildinfo proxmoxlib.js
rm -rf ${BUILDDIR} *.tar.gz *.dsc *.deb *.changes *.buildinfo proxmoxlib.js
find . -name '*~' -exec rm {} ';'
.PHONY: dinstall

4
debian/control vendored
View File

@ -3,11 +3,11 @@ Section: web
Priority: optional
Maintainer: Proxmox Support Team <support@proxmox.com>
Build-Depends: debhelper (>= 9)
Standards-Version: 3.9.5
Standards-Version: 3.9.8
Homepage: http://www.proxmox.com
Package: proxmox-widget-toolkit
Architecture: all
Depends: ${misc:Depends}
Description: ExtJS Helper Classes for Proxmox
ExtJS Helper Classes to easy access to Proxmox APIs.
ExtJS Helper Classes to easy access to Proxmox APIs.

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
1.0