]>
Commit | Line | Data |
---|---|---|
2ebffe56 | 1 | VERSION=5.0 |
008c3bb2 | 2 | PKGREL=34 |
e143e9d8 DM |
3 | |
4 | PACKAGE=libpve-common-perl | |
5 | ||
e143e9d8 | 6 | ARCH=all |
2131eb50 | 7 | GITVERSION:=$(shell git rev-parse HEAD) |
b98a06a3 | 8 | |
dbaa6e52 TL |
9 | BUILDDIR ?= build |
10 | ||
e143e9d8 DM |
11 | DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb |
12 | ||
13 | all: ${DEB} | |
14 | ||
15 | .PHONY: dinstall | |
16 | dinstall: deb | |
17 | dpkg -i ${DEB} | |
18 | ||
19 | ||
20 | .PHONY: deb | |
a73f417f | 21 | deb ${DEB}: check |
dbaa6e52 TL |
22 | rm -rf ${BUILDDIR} |
23 | rsync -a src/ ${BUILDDIR} | |
24 | rsync -a debian/ ${BUILDDIR}/debian | |
25 | echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE | |
26 | cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc | |
e143e9d8 DM |
27 | lintian ${DEB} |
28 | ||
82ad3144 | 29 | .PHONY: clean distclean |
e143e9d8 | 30 | distclean: clean |
82ad3144 TL |
31 | clean: |
32 | rm -rf *~ *.deb *.changes ${BUILDDIR} *.buildinfo | |
e143e9d8 | 33 | |
936218b8 WB |
34 | .PHONY: check |
35 | check: | |
36 | $(MAKE) -C test check | |
e143e9d8 DM |
37 | |
38 | .PHONY: upload | |
39 | upload: ${DEB} | |
68ab3fce | 40 | tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch |
e143e9d8 | 41 |