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