]> git.proxmox.com Git - extjs.git/blob - Makefile
8891d1d197c894e1c2a0b75b5674a61acb2ac09a
[extjs.git] / Makefile
1 include /usr/share/dpkg/pkg-info.mk
2
3 PACKAGE=libjs-extjs
4
5 BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
6 ORIG_SRC_TAR=$(PACKAGE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz
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 && mkdir -p $@.tmp/extjs
15 cp -a debian/ $@.tmp/debian
16 cp -a extjs/build/ $@.tmp/extjs/build
17 echo "git clone git://git.proxmox.com/git/extjs.git\\ngit checkout $$(git rev-parse HEAD)" > $@.tmp/debian/SOURCE
18 mv $@.tmp $@
19
20 .PHONY: deb
21 deb: $(DEB)
22 $(DEB): $(BUILDDIR)
23 cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
24 lintian $@
25
26 $(ORIG_SRC_TAR): $(BUILDDIR)
27 tar czf $(ORIG_SRC_TAR) --exclude="$(BUILDDIR)/debian" $(BUILDDIR)
28
29 .PHONY: dsc
30 dsc: clean
31 $(MAKE) $(DSC)
32 lintian $@
33
34 $(DSC): $(ORIG_SRC_TAR) $(BUILDDIR)
35 cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
36
37 sbuild: $(DSC)
38 sbuild $(DSC)
39
40 .PHONY: upload
41 upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
42 upload: $(DEB)
43 tar cf - $(DEB) | ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $(UPLOAD_DIST)
44
45 .PHONY: distclean clean
46 distclean: clean
47 clean:
48 rm -rf $(PACKAGE)-[0-9]*/ *.deb *.changes *.buildinfo *.build *.tar.?z *.dsc
49
50 .PHONY: dinstall
51 dinstall: $(DEB)
52 dpkg -i $(DEB)