From f0e4870b4fbe47ecd0d950ef58297efaf46bf14d Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sat, 30 Mar 2019 12:56:57 +0100 Subject: [PATCH] buildsys: add dsc target Signed-off-by: Thomas Lamprecht --- Makefile | 21 ++++++++++++++++----- debian/control | 4 ++-- debian/source/format | 1 + 3 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 debian/source/format diff --git a/Makefile b/Makefile index 0ece1cd..2acc225 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/debian/control b/debian/control index dd7d6e2..fbef368 100644 --- a/debian/control +++ b/debian/control @@ -3,11 +3,11 @@ Section: web Priority: optional Maintainer: Proxmox Support Team 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. \ No newline at end of file + ExtJS Helper Classes to easy access to Proxmox APIs. diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +1.0