1
0
mirror of git://git.proxmox.com/git/extjs.git synced 2025-12-06 02:56:58 -05:00
extjs/Makefile
Thomas Lamprecht 441cddbd26 buildsys: initial fixes for dsc target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-08 11:30:40 +02:00

48 lines
1.1 KiB
Makefile

include /usr/share/dpkg/pkg-info.mk
PACKAGE=libjs-extjs
BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
ORIG_SRC_TAR=$(PACKAGE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz
GITVERSION:=$(shell git rev-parse HEAD)
DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
all: deb
$(BUILDDIR): debian extjs
rm -rf $@ $@.tmp && mkdir -p $@.tmp/extjs
cp -a debian/ $@.tmp/debian
cp -a extjs/build/ $@.tmp/extjs/build
mv $@.tmp $@
.PHONY: deb
deb: $(DEB)
$(DEB): $(BUILDDIR)
cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
lintian $@
$(ORIG_SRC_TAR): $(BUILDDIR)
tar czf $(ORIG_SRC_TAR) -C $(BUILDDIR) --exclude='./debian' .
.PHONY: dsc
dsc: $(DSC)
$(DSC): $(ORIG_SRC_TAR) $(BUILDDIR)
cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
lintian $@
.PHONY: upload
upload: $(DEB)
tar cf - $(DEB) | ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bookworm
.PHONY: distclean clean
distclean: clean
clean:
rm -rf $(PACKAGE)-[0-9]*/ *.deb *.changes *.buildinfo *.build *.tar.?z *.dsc
find . -name '*~' -exec rm () ';'
.PHONY: dinstall
dinstall: $(DEB)
dpkg -i $(DEB)