]> git.proxmox.com Git - libjs-qrcodejs.git/blame - Makefile
buildsys: add download-source target
[libjs-qrcodejs.git] / Makefile
CommitLineData
ce9cfc8f 1include /usr/share/dpkg/pkg-info.mk
ce9cfc8f 2
9616af76
TL
3PACKAGE=libjs-qrcodejs
4BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION)
5ORIG_SRC_TAR=$(PACKAGE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz
6
7DEB=$(PACKAGE)_$(DEB_VERSION)_all.deb
8DSC=$(PACKAGE)_$(DEB_VERSION).dsc
ce9cfc8f
WB
9
10GITVERSION:=$(shell git rev-parse HEAD)
11
12all:
13 true
14
15$(BUILDDIR):
16 rm -rf $(BUILDDIR).tmp
c17a7b3a
TL
17 cp -a src $(BUILDDIR).tmp
18 cp -a debian $(BUILDDIR).tmp/
ce9cfc8f
WB
19 echo "git clone git://git.proxmox.com/git/libjs-qrcodejs.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR).tmp/debian/SOURCE
20 mv $(BUILDDIR).tmp/ $(BUILDDIR)
21
f98d9cb0
TL
22$(ORIG_SRC_TAR): $(BUILDDIR)
23 tar czf $(ORIG_SRC_TAR) --exclude="$(BUILDDIR)/debian" $(BUILDDIR)
24
ce9cfc8f
WB
25.PHONY: deb
26deb: $(DEB)
27$(DEB): $(BUILDDIR)
28 cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
29 lintian $(DEB)
30
31.PHONY: dsc
32dsc: $(DSC)
f98d9cb0
TL
33 $(MAKE) clean
34 $(MAKE) $(DSC)
ce9cfc8f
WB
35 lintian $(DSC)
36
f98d9cb0
TL
37$(DSC): $(BUILDDIR) $(ORIG_SRC_TAR)
38 cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
39
ce9cfc8f
WB
40.PHONY: upload
41upload: $(DEB)
42 tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist buster
43
44distclean: clean
45clean:
c17a7b3a 46 $(MAKE) -C src clean
f98d9cb0 47 rm -rf $(PACKAGE)-[0-9]*/ $(PACKAGE)*tar* *.dsc *.deb *.changes *.build *.buildinfo
ce9cfc8f
WB
48
49.PHONY: dinstall
50dinstall: $(DEB)
51 dpkg -i $(DEB)