]> git.proxmox.com Git - pve-sheepdog.git/blob - Makefile
Initial commit
[pve-sheepdog.git] / Makefile
1 RELEASE=2.1
2
3 PACKAGE=pve-sheepdog
4 PKGREL=1
5 SDVER=0.3.0
6
7 DEB=${PACKAGE}_${SDVER}-${PKGREL}_amd64.deb
8
9 SDDIR=sheepdog-${SDVER}
10 SDSRC=${SDDIR}.tar.gz
11
12 all: ${DEB}
13
14 ${DEB} deb: ${SDSRC}
15 rm -rf ${SDDIR}
16 tar xf ${SDSRC}
17 cp -av debian ${SDDIR}/debian
18 cd ${SDDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
19 lintian --suppress-tags possible-gpl-code-linked-with-openssl ${DEB}
20
21 .PHONY: download
22 ${SDSRC} download:
23 rm -rf ${SDDIR} sheepdog.git
24 git clone git://github.com/collie/sheepdog.git -b for-0.4.0 sheepdog.git
25 rsync -a --exclude .git --exclude .gitignore sheepdog.git/ ${SDDIR}
26 tar czf ${SDSRC}.tmp ${SDDIR}
27 rm -rf ${SDDIR}
28 mv ${SDSRC}.tmp ${SDSRC}
29
30 clean:
31 distclean: clean
32 rm -rf sheepdog.git
33
34 .PHONY: clean
35 clean:
36 rm -rf *~ debian/*~ *.deb *.changes *.dsc ${SDDIR} ${SDSRC}.tmp
37
38 .PHONY: dinstall
39 dinstall: ${DEB}
40 dpkg -i ${DEB}
41