]> git.proxmox.com Git - pve-sheepdog.git/blame - Makefile
Makefile: use "--product pve --dist jessie" for upload target
[pve-sheepdog.git] / Makefile
CommitLineData
18eae05c 1RELEASE=4.2
ff62b221
DM
2
3PACKAGE=pve-sheepdog
98e384f7 4PKGREL=1
18eae05c 5SDVER=1.0.0
ff62b221 6
ebcf999a
DM
7ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
8GITVERSION:=$(shell cat .git/refs/heads/master)
9
10DEB=${PACKAGE}_${SDVER}-${PKGREL}_${ARCH}.deb
ff62b221
DM
11
12SDDIR=sheepdog-${SDVER}
13SDSRC=${SDDIR}.tar.gz
14
15all: ${DEB}
16
17${DEB} deb: ${SDSRC}
18 rm -rf ${SDDIR}
19 tar xf ${SDSRC}
b80d6fd3 20 mv ${SDDIR}/debian ${SDDIR}/debian.org
ff62b221 21 cp -av debian ${SDDIR}/debian
ebcf999a 22 echo "git clone git://git.proxmox.com/git/pve-sheepdog.git\\ngit checkout ${GITVERSION}" > ${SDDIR}/debian/SOURCE
ff62b221 23 cd ${SDDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
d219be83 24 lintian -X copyright-file ${DEB}
ff62b221
DM
25
26.PHONY: download
27${SDSRC} download:
28 rm -rf ${SDDIR} sheepdog.git
18eae05c 29 git clone git://github.com/sheepdog/sheepdog.git -b v1.0 sheepdog.git
b2080a79 30 cd sheepdog.git; git archive --format=tar.gz -o ../${SDSRC}.tmp v1.0 --prefix=${SDDIR}/
ff62b221
DM
31 mv ${SDSRC}.tmp ${SDSRC}
32
35182cb4
DM
33.PHONY: upload
34upload: ${DEB}
d8e99ec8 35 tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist jessie
35182cb4 36
ff62b221
DM
37clean:
38distclean: clean
39 rm -rf sheepdog.git
40
41.PHONY: clean
42clean:
43 rm -rf *~ debian/*~ *.deb *.changes *.dsc ${SDDIR} ${SDSRC}.tmp
44
45.PHONY: dinstall
46dinstall: ${DEB}
47 dpkg -i ${DEB}
48