]>
Commit | Line | Data |
---|---|---|
bf61be74 TL |
1 | include /usr/share/dpkg/pkg-info.mk |
2 | ||
f76a2828 | 3 | PACKAGE=pve-container |
f76a2828 | 4 | |
0717611b | 5 | GITVERSION:=$(shell git rev-parse HEAD) |
d962762a | 6 | BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM) |
f76a2828 | 7 | |
d962762a WB |
8 | DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb |
9 | DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc | |
f76a2828 | 10 | |
d962762a | 11 | all: $(DEB) |
f76a2828 DM |
12 | |
13 | .PHONY: dinstall | |
d962762a WB |
14 | dinstall: $(DEB) |
15 | dpkg -i $(DEB) | |
f76a2828 | 16 | |
d962762a WB |
17 | $(BUILDDIR): |
18 | rm -rf $(BUILDDIR) | |
19 | rsync -a src/ debian $(BUILDDIR) | |
20 | echo "git clone git://git.proxmox.com/git/pve-container\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE | |
74367edd | 21 | |
6535fcdb | 22 | .PHONY: deb |
d962762a WB |
23 | deb: $(DEB) |
24 | $(DEB): $(BUILDDIR) | |
25 | cd $(BUILDDIR); dpkg-buildpackage -b -us -uc | |
26 | lintian $(DEB) | |
f76a2828 | 27 | |
74367edd TL |
28 | |
29 | .PHONY: dsc | |
d962762a WB |
30 | dsc: $(DSC) |
31 | $(DSC): $(BUILDDIR) | |
f8a70ece | 32 | cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d |
d962762a | 33 | lintian $(DSC) |
74367edd | 34 | |
f8a70ece WB |
35 | .PHONY: sbuild |
36 | sbuild: $(DSC) | |
37 | sbuild $(DSC) | |
38 | ||
f76a2828 DM |
39 | .PHONY: clean |
40 | clean: | |
b0873372 WB |
41 | $(MAKE) -C src clean |
42 | rm -rf $(BUILDDIR) | |
43 | rm -f *.deb *.changes *.buildinfo *.dsc *.tar.?z | |
f76a2828 DM |
44 | |
45 | .PHONY: distclean | |
46 | distclean: clean | |
47 | ||
48 | .PHONY: upload | |
a2c70d78 | 49 | upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION) |
d962762a | 50 | upload: $(DEB) |
a2c70d78 | 51 | tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST) |