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