]> git.proxmox.com Git - pve-cluster.git/blame - Makefile
make: fix upload target
[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
TL
8DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
9DBGDEB=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
fe000966 10
e1c275a7 11PERL_APIVER := `perl -MConfig -e 'print $$Config{debian_abi}//$$Config{version};'`
af75b50f
DM
12
13all: ${DEB} ${DBG_DEB}
fe000966
DM
14
15cpgtest: 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
19dinstall: ${DEB}
20 dpkg -i ${DEB}
fe000966 21
22c1bf56 22.PHONY: deb
0ef952c1
WB
23deb ${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
197d4344 29 echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
fe000966 30 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
5d7679ac 31 lintian ${DEB}
fe000966
DM
32
33
34.PHONY: upload
af75b50f 35upload: ${DEB} ${DBG_DEB}
8a3cd032 36 tar cf - ${DEB} ${DBGDEB}| ssh -X repoman@repo.proxmox.com -- upload --product pve --dist buster --arch ${DEB_BUILD_ARCH}
fe000966
DM
37
38.PHONY: clean
39clean:
810ebdb4 40 rm -rf *~ build *.deb *.changes *.dsc ${CSDIR} *.buildinfo