]> git.proxmox.com Git - pve-http-server.git/blame_incremental - Makefile
bump version to 5.0.4
[pve-http-server.git] / Makefile
... / ...
CommitLineData
1include /usr/share/dpkg/pkg-info.mk
2
3PACKAGE=libpve-http-server-perl
4
5GITVERSION:=$(shell git rev-parse HEAD)
6BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION)
7
8DSC=$(PACKAGE)_$(DEB_VERSION).dsc
9DEB=$(PACKAGE)_$(DEB_VERSION)_all.deb
10
11all:
12
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
20.PHONY: deb
21deb: $(DEB)
22$(DEB): $(BUILDDIR)
23 cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
24 lintian $(DEB)
25
26.PHONY: dsc
27dsc: $(DSC)
28$(DSC): $(BUILDDIR)
29 cd $(BUILDDIR); dpkg-buildpackage -S -us -uc
30 lintian $(DSC)
31
32sbuild: $(DSC)
33 sbuild $(DSC)
34
35.PHONY: upload
36upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
37upload: $(DEB)
38 tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist $(UPLOAD_DIST)
39
40.PHONY: clean distclean
41distclean: clean
42 $(MAKE) -C src $@
43
44clean:
45 $(MAKE) -C src $@
46 rm -rf $(PACKAGE)-*/ *.deb *.dsc *.tar.* *.changes *.build *.buildinfo examples/simple-demo.lck
47
48.PHONY: dinstall
49dinstall: $(DEB)
50 dpkg -i $(DEB)