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