]>
Commit | Line | Data |
---|---|---|
1 | VERSION=5.0 | |
2 | PKGREL=40 | |
3 | ||
4 | PACKAGE=libpve-common-perl | |
5 | ||
6 | ARCH=all | |
7 | GITVERSION:=$(shell git rev-parse HEAD) | |
8 | ||
9 | BUILDDIR ?= build | |
10 | ||
11 | DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb | |
12 | DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc | |
13 | TARGZ=${PACKAGE}_${VERSION}-${PKGREL}.tar.gz | |
14 | ||
15 | all: | |
16 | ${MAKE} -C src | |
17 | ||
18 | .PHONY: dinstall | |
19 | dinstall: deb | |
20 | dpkg -i ${DEB} | |
21 | ||
22 | ${BUILDDIR}: src debian | |
23 | rm -rf ${BUILDDIR} | |
24 | rsync -a * ${BUILDDIR} | |
25 | echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE | |
26 | ||
27 | .PHONY: deb | |
28 | deb: ${DEB} | |
29 | ${DEB}: ${BUILDDIR} | |
30 | cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc | |
31 | lintian ${DEB} | |
32 | ||
33 | .PHONY: dsc | |
34 | dsc ${TARGZ}: ${DSC} | |
35 | ${DSC}: ${BUILDDIR} | |
36 | cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc | |
37 | lintian ${DSC} | |
38 | ||
39 | .PHONY: clean distclean | |
40 | distclean: clean | |
41 | clean: | |
42 | rm -rf *~ *.deb *.changes ${BUILDDIR} *.buildinfo *.dsc *.tar.gz | |
43 | ||
44 | .PHONY: check | |
45 | check: | |
46 | $(MAKE) -C test check | |
47 | ||
48 | .PHONY: install | |
49 | install: | |
50 | ${MAKE} -C src install | |
51 | ||
52 | .PHONY: upload | |
53 | upload: ${DEB} | |
54 | tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch | |
55 |