]>
Commit | Line | Data |
---|---|---|
fe000966 | 1 | PACKAGE=pve-cluster |
f8333c79 | 2 | PKGVER=5.0 |
c8c63c48 | 3 | PKGREL=28 |
fe000966 DM |
4 | |
5 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
0d42a457 | 6 | GITVERSION:=$(shell git rev-parse HEAD) |
fe000966 DM |
7 | |
8 | DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb | |
b444665c | 9 | DBG_DEB=${PACKAGE}-dbgsym_${PKGVER}-${PKGREL}_${ARCH}.deb |
fe000966 | 10 | |
e1c275a7 | 11 | PERL_APIVER := `perl -MConfig -e 'print $$Config{debian_abi}//$$Config{version};'` |
af75b50f DM |
12 | |
13 | all: ${DEB} ${DBG_DEB} | |
fe000966 DM |
14 | |
15 | cpgtest: cpgtest.c | |
a8bf13d0 | 16 | gcc -Wall cpgtest.c $(shell pkg-config --cflags --libs libcpg libqb) -o cpgtest |
fe000966 DM |
17 | |
18 | .PHONY: dinstall | |
170647bc DM |
19 | dinstall: ${DEB} |
20 | dpkg -i ${DEB} | |
fe000966 | 21 | |
22c1bf56 | 22 | .PHONY: deb |
0ef952c1 WB |
23 | deb ${DBG_DEB}: ${DEB} |
24 | ${DEB}: | |
22c1bf56 | 25 | rm -f *.deb |
fe000966 | 26 | rm -rf build |
0ef952c1 | 27 | cp -a data build |
fe000966 | 28 | cp -a debian build/debian |
14b8afbb | 29 | sed -e "s|@PERLAPI@|perlapi-$(PERL_APIVER)|g" debian/control.in > build/debian/control |
197d4344 | 30 | echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE |
fe000966 | 31 | cd build; dpkg-buildpackage -rfakeroot -b -us -uc |
5d7679ac | 32 | lintian ${DEB} |
fe000966 DM |
33 | |
34 | ||
35 | .PHONY: upload | |
af75b50f | 36 | upload: ${DEB} ${DBG_DEB} |
dff91b21 | 37 | tar cf - ${DEB} ${DBG_DEB}| ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} |
fe000966 DM |
38 | |
39 | .PHONY: clean | |
40 | clean: | |
f43f9047 | 41 | rm -rf *~ build *_${ARCH}.deb *.changes *.dsc ${CSDIR} *.buildinfo |