]>
Commit | Line | Data |
---|---|---|
14257668 TL |
1 | include /usr/share/dpkg/pkg-info.mk |
2 | ||
c3a2d08f | 3 | PACKAGE=libjs-extjs |
c3a2d08f | 4 | |
04a45c2f | 5 | BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM) |
14257668 | 6 | GITVERSION:=$(shell git rev-parse HEAD) |
70e3417a | 7 | |
04a45c2f TL |
8 | DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb |
9 | DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc | |
c3a2d08f | 10 | |
704d95be | 11 | all: 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 | |
70e3417a FG |
17 | cp extjs/licenses/license.txt $@.tmp/debian/copyright |
18 | mv $@.tmp $@ | |
19 | ||
c3a2d08f | 20 | .PHONY: deb |
04a45c2f TL |
21 | deb: $(DEB) |
22 | $(DEB): $(BUILDDIR) | |
23 | cd $(BUILDDIR); dpkg-buildpackage -b -us -uc | |
70e3417a FG |
24 | lintian $@ |
25 | ||
26 | .PHONY: dsc | |
04a45c2f TL |
27 | dsc: $(DSC) |
28 | $(DSC): $(BUILDDIR) | |
29 | cd $(BUILDDIR); tar czf ../$(PACKAGE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz * | |
30 | cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d | |
e69e415c | 31 | lintian $@ |
c3a2d08f | 32 | |
c3a2d08f | 33 | .PHONY: upload |
04a45c2f TL |
34 | upload: $(DEB) |
35 | tar cf - $(DEB) | ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bookworm | |
c3a2d08f | 36 | |
14257668 | 37 | .PHONY: distclean clean |
c3a2d08f | 38 | distclean: clean |
c3a2d08f | 39 | clean: |
04a45c2f TL |
40 | rm -rf $(PACKAGE)-[0-9]*/ *.deb *.changes *.buildinfo *.build *.tar.?z *.dsc |
41 | find . -name '*~' -exec rm () ';' | |
c3a2d08f DM |
42 | |
43 | .PHONY: dinstall | |
04a45c2f TL |
44 | dinstall: $(DEB) |
45 | dpkg -i $(DEB) |