]> git.proxmox.com Git - libjs-qrcodejs.git/blob - Makefile
buildsys: set source format to 3.0 (quilt)
[libjs-qrcodejs.git] / Makefile
1 include /usr/share/dpkg/pkg-info.mk
2 export DEB_VERSION_UPSTREAM_REVISION
3
4 export PACKAGE=libjs-qrcodejs
5 BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
6 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
7 DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
8
9 GITVERSION:=$(shell git rev-parse HEAD)
10
11 all:
12 true
13
14 $(BUILDDIR):
15 rm -rf $(BUILDDIR).tmp
16 mkdir $(BUILDDIR).tmp
17 cp -a debian qrcode.min.js $(BUILDDIR).tmp/
18 echo "git clone git://git.proxmox.com/git/libjs-qrcodejs.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR).tmp/debian/SOURCE
19 mv $(BUILDDIR).tmp/ $(BUILDDIR)
20
21 .PHONY: deb
22 deb: $(DEB)
23 $(DEB): $(BUILDDIR)
24 cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
25 lintian $(DEB)
26
27 .PHONY: dsc
28 dsc: $(DSC)
29 $(DSC): $(BUILDDIR)
30 cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
31 lintian $(DSC)
32
33 .PHONY: upload
34 upload: $(DEB)
35 tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist buster
36
37 distclean: clean
38 clean:
39 $(MAKE) -C src clean
40 rm -rf $(BUILDDIR) $(BUILDDIR).tmp *.tar.gz *.dsc *.deb *.changes *.buildinfo
41 find . -name '*~' -exec rm {} ';'
42
43 .PHONY: dinstall
44 dinstall: $(DEB)
45 dpkg -i $(DEB)