]> git.proxmox.com Git - pve-http-server.git/blame - Makefile
avoid AnyEvent::AIO to fix CPU spinning if pure-perl lib is installed
[pve-http-server.git] / Makefile
CommitLineData
a9fc6893 1include /usr/share/dpkg/pkg-info.mk
a9fc6893 2
d8218001 3PACKAGE=libpve-http-server-perl
d8218001 4
a9fc6893 5GITVERSION:=$(shell git rev-parse HEAD)
92efe072 6BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION)
a9fc6893 7
92efe072
TL
8DSC=$(PACKAGE)_$(DEB_VERSION).dsc
9DEB=$(PACKAGE)_$(DEB_VERSION)_all.deb
d8218001 10
5a554403 11all:
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 21deb: $(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
27dsc: $(DSC)
28$(DSC): $(BUILDDIR)
29 cd $(BUILDDIR); dpkg-buildpackage -S -us -uc
30 lintian $(DSC)
31
72908e16
TL
32sbuild: $(DSC)
33 sbuild $(DSC)
34
d8218001 35.PHONY: upload
16e05520 36upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
63679bde 37upload: $(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 41distclean: clean
63679bde 42 $(MAKE) -C src $@
d8218001
DM
43
44clean:
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
49dinstall: $(DEB)
50 dpkg -i $(DEB)