]> git.proxmox.com Git - pve-sheepdog.git/blame - Makefile
add upload target
[pve-sheepdog.git] / Makefile
CommitLineData
ff62b221
DM
1RELEASE=2.1
2
3PACKAGE=pve-sheepdog
4PKGREL=1
5SDVER=0.3.0
6
7DEB=${PACKAGE}_${SDVER}-${PKGREL}_amd64.deb
8
9SDDIR=sheepdog-${SDVER}
10SDSRC=${SDDIR}.tar.gz
11
12all: ${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
35182cb4
DM
30.PHONY: upload
31upload: ${DEB}
32 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
33 mkdir -p /pve/${RELEASE}/extra
34 rm -f /pve/${RELEASE}/extra/sheepdog*.deb
35 rm -f /pve/${RELEASE}/extra/Packages*
36 cp ${DEB} /pve/${RELEASE}/extra
37 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
38 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
39
ff62b221
DM
40clean:
41distclean: clean
42 rm -rf sheepdog.git
43
44.PHONY: clean
45clean:
46 rm -rf *~ debian/*~ *.deb *.changes *.dsc ${SDDIR} ${SDSRC}.tmp
47
48.PHONY: dinstall
49dinstall: ${DEB}
50 dpkg -i ${DEB}
51