]>
Commit | Line | Data |
---|---|---|
810ebdb4 TL |
1 | include /usr/share/dpkg/pkg-info.mk |
2 | include /usr/share/dpkg/architecture.mk | |
3 | ||
fe000966 | 4 | PACKAGE=pve-cluster |
fe000966 | 5 | |
0d42a457 | 6 | GITVERSION:=$(shell git rev-parse HEAD) |
fe000966 | 7 | |
810ebdb4 | 8 | DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb |
ce30dfcb TL |
9 | LIBDEB = libpve-cluster-perl_${DEB_VERSION_UPSTREAM_REVISION}_all.deb |
10 | LIBDEB += libpve-cluster-api-perl_${DEB_VERSION_UPSTREAM_REVISION}_all.deb | |
810ebdb4 | 11 | DBGDEB=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb |
fe000966 | 12 | |
e4be7086 TL |
13 | DEBS = ${DEB} ${DBG_DEB} ${LIBDEB} |
14 | ||
e1c275a7 | 15 | PERL_APIVER := `perl -MConfig -e 'print $$Config{debian_abi}//$$Config{version};'` |
af75b50f DM |
16 | |
17 | all: ${DEB} ${DBG_DEB} | |
fe000966 DM |
18 | |
19 | cpgtest: cpgtest.c | |
a8bf13d0 | 20 | gcc -Wall cpgtest.c $(shell pkg-config --cflags --libs libcpg libqb) -o cpgtest |
fe000966 DM |
21 | |
22 | .PHONY: dinstall | |
ce30dfcb TL |
23 | dinstall: ${DEB} ${LIBDEB} |
24 | dpkg -i $^ | |
fe000966 | 25 | |
22c1bf56 | 26 | .PHONY: deb |
ce30dfcb | 27 | deb ${DBG_DEB} ${LIBDEB}: ${DEB} |
0ef952c1 | 28 | ${DEB}: |
22c1bf56 | 29 | rm -f *.deb |
fe000966 | 30 | rm -rf build |
0ef952c1 | 31 | cp -a data build |
fe000966 | 32 | cp -a debian build/debian |
197d4344 | 33 | echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE |
fe000966 | 34 | cd build; dpkg-buildpackage -rfakeroot -b -us -uc |
5d7679ac | 35 | lintian ${DEB} |
fe000966 DM |
36 | |
37 | ||
38 | .PHONY: upload | |
e4be7086 TL |
39 | upload: ${DEBS} |
40 | tar cf - ${DEBS} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye --arch ${DEB_BUILD_ARCH} | |
fe000966 DM |
41 | |
42 | .PHONY: clean | |
43 | clean: | |
e4be7086 | 44 | rm -rf *~ build *.deb *.changes *.dsc *.buildinfo |