]> git.proxmox.com Git - ksm-control-daemon.git/blame - Makefile
updates for PVE 4.0 (Debian Jessie)
[ksm-control-daemon.git] / Makefile
CommitLineData
1642c475 1RELEASE=4.0
03e54684
DM
2
3PACKAGE=ksm-control-daemon
427cee69
DM
4
5# also update debian/changelog
1642c475 6PKGVER=1.2
427cee69 7PKGREL=1
03e54684
DM
8
9KSM_DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
10
0cec1bbf
DM
11GITVERSION:=$(shell cat .git/refs/heads/master)
12
03e54684
DM
13all: ${KSM_DEB}
14
15${KSM_DEB} ksm: ksm-control-scripts.org/ksm.init
16 rm -rf ksm-control-scripts
17 rsync -a --exclude .git ksm-control-scripts.org/ ksm-control-scripts
18 cp -a debian ksm-control-scripts
0cec1bbf 19 echo "git clone git://git.proxmox.com/git/ksm-control-daemon.git\\ngit checkout ${GITVERSION}" > ksm-control-scripts/debian/SOURCE
f3306f2d 20 cd ksm-control-scripts; dpkg-buildpackage -b -rfakeroot -us -uc
03e54684
DM
21 lintian ${KSM_DEB} || true
22
faf04ee2
DM
23.PHONY: download
24download:
25 rm -rf ksm-control-scripts.org ksm-control-scripts.org.tar.gz
03e54684 26 git clone git://gitorious.org/ksm-control-scripts/ksm-control-scripts.git ksm-control-scripts.org
faf04ee2 27 tar czf ksm-control-scripts.org.tar.gz ksm-control-scripts.org
03e54684 28
faf04ee2
DM
29ksm-control-scripts.org/ksm.init: ksm-control-scripts.org.tar.gz
30 tar xzf ksm-control-scripts.org.tar.gz
31 touch $@
03e54684
DM
32
33.PHONY: upload
34upload: ${KSM_DEB}
35 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
36 mkdir -p /pve/${RELEASE}/extra
37 rm -rf /pve/${RELEASE}/extra/Packages*
38 rm -rf /pve/${RELEASE}/extra/${PACKAGE}_*.deb
39 cp ${KSM_DEB} /pve/${RELEASE}/extra
40 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
41 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
42
43.PHONY: distclean
44distclean: clean
45 rm -rf ksm-control-scripts.org
46
47.PHONY: clean
48clean:
3fb328dc
DM
49 rm -rf *~ ksm-control-scripts ${PACKAGE}_*
50
51.PHONY: dinstall
52dinstall: ${KSM_DEB}
53 dpkg -i ${KSM_DEB}