]>
Commit | Line | Data |
---|---|---|
a9fc6893 | 1 | include /usr/share/dpkg/pkg-info.mk |
a9fc6893 | 2 | |
d8218001 | 3 | PACKAGE=libpve-http-server-perl |
d8218001 | 4 | |
a9fc6893 | 5 | GITVERSION:=$(shell git rev-parse HEAD) |
92efe072 | 6 | BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION) |
a9fc6893 | 7 | |
92efe072 TL |
8 | DSC=$(PACKAGE)_$(DEB_VERSION).dsc |
9 | DEB=$(PACKAGE)_$(DEB_VERSION)_all.deb | |
d8218001 | 10 | |
5a554403 | 11 | all: |
d8218001 | 12 | |
92efe072 TL |
13 | $(BUILDDIR): src debian |
14 | rm -rf $@ $@.tmp | |
15 | cp -a src $@.tmp | |
16 | cp -a debian $@.tmp/ | |
17 | echo "git clone git://git.proxmox.com/git/pve-http-server\\ngit checkout $(GITVERSION)" > $@.tmp/debian/SOURCE | |
18 | mv $@.tmp $@ | |
19 | ||
d8218001 | 20 | .PHONY: deb |
63679bde | 21 | deb: $(DEB) |
92efe072 | 22 | $(DEB): $(BUILDDIR) |
63679bde TL |
23 | cd $(BUILDDIR); dpkg-buildpackage -b -us -uc |
24 | lintian $(DEB) | |
d8218001 | 25 | |
92efe072 TL |
26 | .PHONY: dsc |
27 | dsc: $(DSC) | |
28 | $(DSC): $(BUILDDIR) | |
29 | cd $(BUILDDIR); dpkg-buildpackage -S -us -uc | |
30 | lintian $(DSC) | |
31 | ||
72908e16 TL |
32 | sbuild: $(DSC) |
33 | sbuild $(DSC) | |
34 | ||
d8218001 | 35 | .PHONY: upload |
16e05520 | 36 | upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION) |
63679bde | 37 | upload: $(DEB) |
16e05520 | 38 | tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist $(UPLOAD_DIST) |
d8218001 | 39 | |
584d34a7 | 40 | .PHONY: clean distclean |
d8218001 | 41 | distclean: clean |
63679bde | 42 | $(MAKE) -C src $@ |
d8218001 DM |
43 | |
44 | clean: | |
63679bde | 45 | $(MAKE) -C src $@ |
37045e72 | 46 | rm -rf $(PACKAGE)-*/ *.deb *.dsc *.tar.* *.changes *.build *.buildinfo examples/simple-demo.lck |
d8218001 DM |
47 | |
48 | .PHONY: dinstall | |
63679bde TL |
49 | dinstall: $(DEB) |
50 | dpkg -i $(DEB) |