1
0
mirror of git://git.proxmox.com/git/extjs.git synced 2025-12-06 02:56:58 -05:00
extjs/Makefile
Thomas Lamprecht 142576680c 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>
2019-05-22 08:22:02 +02:00

48 lines
1.1 KiB
Makefile

include /usr/share/dpkg/pkg-info.mk
PACKAGE=libjs-extjs
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
GITVERSION:=$(shell git rev-parse HEAD)
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
all: deb
${BUILDDIR}: debian extjs
rm -rf $@ $@.tmp
mkdir $@.tmp
rsync -a debian/ $@.tmp/debian
mkdir $@.tmp/extjs
rsync -a extjs/build/ $@.tmp/extjs/build
cp extjs/licenses/license.txt $@.tmp/debian/copyright
mv $@.tmp $@
.PHONY: deb
deb: ${DEB}
${DEB}: ${BUILDDIR}
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
lintian $@
.PHONY: dsc
dsc: ${DSC}
${DSC}: ${BUILDDIR}
cd ${BUILDDIR}; tar czf ../${PACKAGE}_${DEB_VERSION_UPSTREAM}.orig.tar.gz *
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d
lintian $@
.PHONY: upload
upload: ${DEB}
tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
.PHONY: distclean clean
distclean: clean
clean:
rm -rf ${PACKAGE}-*/ *.deb *.changes *.buildinfo *.orig.tar.* *.dsc *.debian.tar.*
find . -name '*~' -exec rm {} ';'
.PHONY: dinstall
dinstall: ${DEB}
dpkg -i ${DEB}