]> git.proxmox.com Git - extjs.git/blob - Makefile
bump version to 7.0.0-4
[extjs.git] / Makefile
1 include /usr/share/dpkg/pkg-info.mk
2
3 PACKAGE=libjs-extjs
4
5 BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
6 GITVERSION:=$(shell git rev-parse HEAD)
7
8 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
9 DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
10
11 all: deb
12
13 ${BUILDDIR}: debian extjs
14 rm -rf $@ $@.tmp
15 mkdir $@.tmp
16 rsync -a debian/ $@.tmp/debian
17 mkdir $@.tmp/extjs
18 rsync -a extjs/build/ $@.tmp/extjs/build
19 cp extjs/licenses/license.txt $@.tmp/debian/copyright
20 mv $@.tmp $@
21
22 .PHONY: deb
23 deb: ${DEB}
24 ${DEB}: ${BUILDDIR}
25 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
26 lintian $@
27
28 .PHONY: dsc
29 dsc: ${DSC}
30 ${DSC}: ${BUILDDIR}
31 cd ${BUILDDIR}; tar czf ../${PACKAGE}_${DEB_VERSION_UPSTREAM}.orig.tar.gz *
32 cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d
33 lintian $@
34
35 .PHONY: upload
36 upload: ${DEB}
37 tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster
38
39 .PHONY: distclean clean
40 distclean: clean
41 clean:
42 rm -rf ${PACKAGE}-*/ *.deb *.changes *.buildinfo *.orig.tar.* *.dsc *.debian.tar.*
43 find . -name '*~' -exec rm {} ';'
44
45 .PHONY: dinstall
46 dinstall: ${DEB}
47 dpkg -i ${DEB}