]> git.proxmox.com Git - pve-cluster.git/blame_incremental - Makefile
make: fix upload target
[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
9DBGDEB=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
10
11PERL_APIVER := `perl -MConfig -e 'print $$Config{debian_abi}//$$Config{version};'`
12
13all: ${DEB} ${DBG_DEB}
14
15cpgtest: cpgtest.c
16 gcc -Wall cpgtest.c $(shell pkg-config --cflags --libs libcpg libqb) -o cpgtest
17
18.PHONY: dinstall
19dinstall: ${DEB}
20 dpkg -i ${DEB}
21
22.PHONY: deb
23deb ${DBG_DEB}: ${DEB}
24${DEB}:
25 rm -f *.deb
26 rm -rf build
27 cp -a data build
28 cp -a debian build/debian
29 echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
30 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
31 lintian ${DEB}
32
33
34.PHONY: upload
35upload: ${DEB} ${DBG_DEB}
36 tar cf - ${DEB} ${DBGDEB}| ssh -X repoman@repo.proxmox.com -- upload --product pve --dist buster --arch ${DEB_BUILD_ARCH}
37
38.PHONY: clean
39clean:
40 rm -rf *~ build *.deb *.changes *.dsc ${CSDIR} *.buildinfo