]> git.proxmox.com Git - extjs.git/blame - Makefile
buildsys: improve DSC target
[extjs.git] / Makefile
CommitLineData
14257668
TL
1include /usr/share/dpkg/pkg-info.mk
2
c3a2d08f 3PACKAGE=libjs-extjs
c3a2d08f 4
04a45c2f 5BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
441cddbd 6ORIG_SRC_TAR=$(PACKAGE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz
70e3417a 7
04a45c2f
TL
8DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
9DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
c3a2d08f 10
704d95be 11all: deb
c3a2d08f 12
04a45c2f 13$(BUILDDIR): debian extjs
17c8407a
TL
14 rm -rf $@ $@.tmp && mkdir -p $@.tmp/extjs
15 cp -a debian/ $@.tmp/debian
16 cp -a extjs/build/ $@.tmp/extjs/build
f3417b07 17 echo "git clone git://git.proxmox.com/git/extjs.git\\ngit checkout $$(git rev-parse HEAD)" > $@.tmp/debian/SOURCE
70e3417a
FG
18 mv $@.tmp $@
19
c3a2d08f 20.PHONY: deb
04a45c2f
TL
21deb: $(DEB)
22$(DEB): $(BUILDDIR)
23 cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
70e3417a
FG
24 lintian $@
25
441cddbd 26$(ORIG_SRC_TAR): $(BUILDDIR)
814505fb 27 tar czf $(ORIG_SRC_TAR) --exclude="$(BUILDDIR)/debian" $(BUILDDIR)
441cddbd 28
70e3417a 29.PHONY: dsc
c21e45da
TL
30dsc: clean
31 $(MAKE) $(DSC)
32 lintian $@
33
441cddbd 34$(DSC): $(ORIG_SRC_TAR) $(BUILDDIR)
04a45c2f 35 cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
c3a2d08f 36
410a282d
TL
37sbuild: $(DSC)
38 sbuild $(DSC)
39
c3a2d08f 40.PHONY: upload
1d965923 41upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
04a45c2f 42upload: $(DEB)
1d965923 43 tar cf - $(DEB) | ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $(UPLOAD_DIST)
c3a2d08f 44
14257668 45.PHONY: distclean clean
c3a2d08f 46distclean: clean
c3a2d08f 47clean:
04a45c2f 48 rm -rf $(PACKAGE)-[0-9]*/ *.deb *.changes *.buildinfo *.build *.tar.?z *.dsc
c3a2d08f
DM
49
50.PHONY: dinstall
04a45c2f
TL
51dinstall: $(DEB)
52 dpkg -i $(DEB)