]> git.proxmox.com Git - pve-cluster.git/blame - Makefile
datacenter.cfg: fix fall back for undefined config
[pve-cluster.git] / Makefile
CommitLineData
810ebdb4
TL
1include /usr/share/dpkg/pkg-info.mk
2include /usr/share/dpkg/architecture.mk
3
fe000966 4PACKAGE=pve-cluster
fe000966 5
0d42a457 6GITVERSION:=$(shell git rev-parse HEAD)
fe000966 7
810ebdb4 8DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
ce30dfcb
TL
9LIBDEB = libpve-cluster-perl_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
10LIBDEB += libpve-cluster-api-perl_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
810ebdb4 11DBGDEB=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
fe000966 12
e4be7086
TL
13DEBS = ${DEB} ${DBG_DEB} ${LIBDEB}
14
e1c275a7 15PERL_APIVER := `perl -MConfig -e 'print $$Config{debian_abi}//$$Config{version};'`
af75b50f
DM
16
17all: ${DEB} ${DBG_DEB}
fe000966
DM
18
19cpgtest: 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
23dinstall: ${DEB} ${LIBDEB}
24 dpkg -i $^
fe000966 25
22c1bf56 26.PHONY: deb
ce30dfcb 27deb ${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
39upload: ${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
43clean:
e4be7086 44 rm -rf *~ build *.deb *.changes *.dsc *.buildinfo