]> git.proxmox.com Git - pve-container.git/blame_incremental - Makefile
cleanup unused functions
[pve-container.git] / Makefile
... / ...
CommitLineData
1include /usr/share/dpkg/pkg-info.mk
2
3PACKAGE=pve-container
4
5GITVERSION:=$(shell git rev-parse HEAD)
6BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
7
8DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
9DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
10
11all: ${DEB}
12
13.PHONY: dinstall
14dinstall: ${DEB}
15 dpkg -i ${DEB}
16
17${BUILDDIR}:
18 rm -rf ${BUILDDIR}
19 rsync -a src/ debian ${BUILDDIR}
20 echo "git clone git://git.proxmox.com/git/pve-container\\ngit checkout ${GITVERSION}" > $(BUILDDIR)/debian/SOURCE
21
22.PHONY: deb
23deb: ${DEB}
24${DEB}: ${BUILDDIR}
25 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
26 lintian ${DEB}
27
28
29.PHONY: dsc
30dsc: ${DSC}
31${DSC}: ${BUILDDIR}
32 cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
33 lintian ${DSC}
34
35.PHONY: clean
36clean:
37 make -C src clean
38 rm -rf *.deb ${PACKAGE}*.tar.gz *.changes *.buildinfo ${DSC} ${PACKAGE}-*/
39 find . -name '*~' -exec rm {} ';'
40
41.PHONY: distclean
42distclean: clean
43
44.PHONY: upload
45upload: ${DEB}
46 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist buster