mirror of
git://git.proxmox.com/git/extjs.git
synced 2025-12-06 02:56:58 -05:00
buildsys: use dpkg-dev makefile helpers for pkg info
and do some general cleanup while we touch this Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a085df1f71
commit
142576680c
29
Makefile
29
Makefile
@ -1,15 +1,16 @@
|
|||||||
|
include /usr/share/dpkg/pkg-info.mk
|
||||||
|
|
||||||
PACKAGE=libjs-extjs
|
PACKAGE=libjs-extjs
|
||||||
PKGVER=6.0.1
|
|
||||||
PKGREL=2
|
|
||||||
|
|
||||||
BUILD_DIR=${PACKAGE}-${PKGVER}
|
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
|
||||||
|
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
|
||||||
|
|
||||||
all: deb
|
all: deb
|
||||||
|
|
||||||
${BUILD_DIR}: debian extjs
|
${BUILDDIR}: debian extjs
|
||||||
rm -rf $@ $@.tmp
|
rm -rf $@ $@.tmp
|
||||||
mkdir $@.tmp
|
mkdir $@.tmp
|
||||||
rsync -a debian/ $@.tmp/debian
|
rsync -a debian/ $@.tmp/debian
|
||||||
@ -20,27 +21,25 @@ ${BUILD_DIR}: debian extjs
|
|||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: ${DEB}
|
deb: ${DEB}
|
||||||
${DEB}: ${BUILD_DIR}
|
${DEB}: ${BUILDDIR}
|
||||||
cd ${BUILD_DIR}; dpkg-buildpackage -b -us -uc
|
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
|
||||||
lintian $@
|
lintian $@
|
||||||
|
|
||||||
.PHONY: dsc
|
.PHONY: dsc
|
||||||
dsc: ${DSC}
|
dsc: ${DSC}
|
||||||
${DSC}: ${BUILD_DIR}
|
${DSC}: ${BUILDDIR}
|
||||||
cd ${BUILD_DIR}; tar czf ../${PACKAGE}_${PKGVER}.orig.tar.gz *
|
cd ${BUILDDIR}; tar czf ../${PACKAGE}_${DEB_VERSION_UPSTREAM}.orig.tar.gz *
|
||||||
cd ${BUILD_DIR}; dpkg-buildpackage -S -us -uc -d
|
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d
|
||||||
lintian $@
|
lintian $@
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload: ${DEB}
|
upload: ${DEB}
|
||||||
tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
|
tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
|
||||||
|
|
||||||
.PHONY: distclean
|
.PHONY: distclean clean
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
|
||||||
.PHONY: clean
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf ${BUILD_DIR} ${BUILD_DIR}.tmp *.deb *.changes *.buildinfo *.orig.tar.* *.dsc *.debian.tar.*
|
rm -rf ${PACKAGE}-*/ *.deb *.changes *.buildinfo *.orig.tar.* *.dsc *.debian.tar.*
|
||||||
find . -name '*~' -exec rm {} ';'
|
find . -name '*~' -exec rm {} ';'
|
||||||
|
|
||||||
.PHONY: dinstall
|
.PHONY: dinstall
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user