]>
Commit | Line | Data |
---|---|---|
8a27e4a4 | 1 | include /usr/share/dpkg/pkg-info.mk |
e143e9d8 DM |
2 | |
3 | PACKAGE=libpve-common-perl | |
4 | ||
e143e9d8 | 5 | ARCH=all |
b98a06a3 | 6 | |
a9fa4157 | 7 | BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM) |
dbaa6e52 | 8 | |
a9fa4157 TL |
9 | DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_$(ARCH).deb |
10 | DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc | |
e143e9d8 | 11 | |
b1766d78 | 12 | all: |
a9fa4157 | 13 | $(MAKE) -C src |
e143e9d8 DM |
14 | |
15 | .PHONY: dinstall | |
16 | dinstall: deb | |
a9fa4157 | 17 | dpkg -i $(DEB) |
e143e9d8 | 18 | |
a9fa4157 TL |
19 | $(BUILDDIR): src debian test |
20 | rm -rf $(BUILDDIR) $(BUILDDIR).tmp; mkdir $(BUILDDIR).tmp | |
21 | cp -a -t $(BUILDDIR).tmp $^ Makefile | |
22 | echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout $(shell git rev-parse HEAD)" > $(BUILDDIR).tmp/debian/SOURCE | |
23 | mv $(BUILDDIR).tmp $(BUILDDIR) | |
b1766d78 FG |
24 | |
25 | .PHONY: deb | |
a9fa4157 TL |
26 | deb: $(DEB) |
27 | $(DEB): $(BUILDDIR) | |
28 | cd $(BUILDDIR); dpkg-buildpackage -b -us -uc | |
29 | lintian $(DEB) | |
e143e9d8 | 30 | |
b1766d78 | 31 | .PHONY: dsc |
a9fa4157 TL |
32 | dsc: $(DSC) |
33 | $(DSC): $(BUILDDIR) | |
34 | cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d | |
35 | lintian $(DSC) | |
b1766d78 | 36 | |
5486a34a TL |
37 | sbuild: $(DSC) |
38 | sbuild $(DSC) | |
39 | ||
82ad3144 | 40 | .PHONY: clean distclean |
e143e9d8 | 41 | distclean: clean |
82ad3144 | 42 | clean: |
a9fa4157 | 43 | rm -rf *~ *.deb *.changes $(PACKAGE)-[0-9]*/ *.buildinfo *.build *.dsc *.tar.?z |
e143e9d8 | 44 | |
936218b8 WB |
45 | .PHONY: check |
46 | check: | |
47 | $(MAKE) -C test check | |
e143e9d8 | 48 | |
b1766d78 FG |
49 | .PHONY: install |
50 | install: | |
a9fa4157 | 51 | $(MAKE) -C src install |
b1766d78 | 52 | |
e143e9d8 | 53 | .PHONY: upload |
0bc01720 | 54 | upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION) |
a9fa4157 TL |
55 | upload: $(DEB) |
56 | tar cf - $(DEB)|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist $(UPLOAD_DIST) |