]> git.proxmox.com Git - pve-http-server.git/blame_incremental - Makefile
multipart upload: drop unused variables
[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_UPSTREAM}
7
8DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
9
10all:
11
12.PHONY: deb
13deb: ${DEB}
14${DEB}:
15 rm -rf ${BUILDDIR}
16 cp -a src ${BUILDDIR}
17 cp -a debian ${BUILDDIR}/
18 echo "git clone git://git.proxmox.com/git/pve-http-server\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
19 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
20 lintian ${DEB}
21
22.PHONY: upload
23upload: ${DEB}
24 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist bullseye
25
26.PHONY: clean distclean
27distclean: clean
28 ${MAKE} -C src $@
29
30clean:
31 ${MAKE} -C src $@
32 rm -rf ${PACKAGE}-*/ *.deb *.changes *.buildinfo ${BTDIR} examples/simple-demo.lck
33 find . -name '*~' -exec rm {} ';'
34
35.PHONY: dinstall
36dinstall: ${DEB}
37 dpkg -i ${DEB}