]>
Commit | Line | Data |
---|---|---|
e4a000e5 TL |
1 | include /usr/share/dpkg/pkg-info.mk |
2 | ||
3 | PACKAGE=fonts-font-logos | |
4 | ||
5 | BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM) | |
6 | ORIG_SRC_TAR=$(PACKAGE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz | |
7 | ||
8 | DEB=$(PACKAGE)_$(DEB_VERSION)_all.deb | |
9 | DSC=$(PACKAGE)_$(DEB_VERSION).dsc | |
10 | ||
11 | all: 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 | |
21 | deb: $(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 | |
30 | dsc: clean | |
31 | $(MAKE) $(DSC) | |
32 | lintian $(DSC) | |
33 | ||
34 | $(DSC): $(ORIG_SRC_TAR) $(BUILDDIR) | |
35 | cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d | |
36 | ||
37 | sbuild: $(DSC) | |
38 | sbuild $(DSC) | |
39 | ||
40 | .PHONY: upload | |
41 | upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION) | |
42 | upload: $(DEB) | |
43 | tar cf - $(DEB) | ssh repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST) | |
44 | ||
45 | .PHONY: distclean clean | |
46 | distclean: clean | |
47 | clean: | |
48 | rm -rf $(PACKAGE)-[0-9]*/ *.deb *.changes *.buildinfo *.build *.tar.?z *.dsc | |
49 | ||
50 | .PHONY: dinstall | |
51 | dinstall: $(DEB) | |
52 | dpkg -i $(DEB) |