]>
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) |
441cddbd | 6 | ORIG_SRC_TAR=$(PACKAGE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz |
14257668 | 7 | GITVERSION:=$(shell git rev-parse HEAD) |
70e3417a | 8 | |
04a45c2f TL |
9 | DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb |
10 | DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc | |
c3a2d08f | 11 | |
704d95be | 12 | all: deb |
c3a2d08f | 13 | |
04a45c2f | 14 | $(BUILDDIR): debian extjs |
17c8407a TL |
15 | rm -rf $@ $@.tmp && mkdir -p $@.tmp/extjs |
16 | cp -a debian/ $@.tmp/debian | |
17 | cp -a extjs/build/ $@.tmp/extjs/build | |
70e3417a FG |
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 | ||
441cddbd TL |
26 | $(ORIG_SRC_TAR): $(BUILDDIR) |
27 | tar czf $(ORIG_SRC_TAR) -C $(BUILDDIR) --exclude='./debian' . | |
28 | ||
70e3417a | 29 | .PHONY: dsc |
04a45c2f | 30 | dsc: $(DSC) |
441cddbd | 31 | $(DSC): $(ORIG_SRC_TAR) $(BUILDDIR) |
04a45c2f | 32 | cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d |
e69e415c | 33 | lintian $@ |
c3a2d08f | 34 | |
c3a2d08f | 35 | .PHONY: upload |
04a45c2f TL |
36 | upload: $(DEB) |
37 | tar cf - $(DEB) | ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bookworm | |
c3a2d08f | 38 | |
14257668 | 39 | .PHONY: distclean clean |
c3a2d08f | 40 | distclean: clean |
c3a2d08f | 41 | clean: |
04a45c2f TL |
42 | rm -rf $(PACKAGE)-[0-9]*/ *.deb *.changes *.buildinfo *.build *.tar.?z *.dsc |
43 | find . -name '*~' -exec rm () ';' | |
c3a2d08f DM |
44 | |
45 | .PHONY: dinstall | |
04a45c2f TL |
46 | dinstall: $(DEB) |
47 | dpkg -i $(DEB) |