]>
Commit | Line | Data |
---|---|---|
9052fb74 | 1 | include /usr/share/dpkg/default.mk |
427cee69 | 2 | |
9052fb74 | 3 | PACKAGE=ksm-control-daemon |
03e54684 | 4 | |
9052fb74 | 5 | KSM_DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb |
03e54684 | 6 | |
99ac1d3d | 7 | GITVERSION:=$(shell git rev-parse HEAD) |
0cec1bbf | 8 | |
03e54684 DM |
9 | all: ${KSM_DEB} |
10 | ||
11 | ${KSM_DEB} ksm: ksm-control-scripts.org/ksm.init | |
12 | rm -rf ksm-control-scripts | |
13 | rsync -a --exclude .git ksm-control-scripts.org/ ksm-control-scripts | |
14 | cp -a debian ksm-control-scripts | |
0cec1bbf | 15 | echo "git clone git://git.proxmox.com/git/ksm-control-daemon.git\\ngit checkout ${GITVERSION}" > ksm-control-scripts/debian/SOURCE |
b6a1b5a3 | 16 | cd ksm-control-scripts; dpkg-buildpackage -b -us -uc |
03e54684 DM |
17 | lintian ${KSM_DEB} || true |
18 | ||
faf04ee2 DM |
19 | .PHONY: download |
20 | download: | |
21 | rm -rf ksm-control-scripts.org ksm-control-scripts.org.tar.gz | |
03e54684 | 22 | git clone git://gitorious.org/ksm-control-scripts/ksm-control-scripts.git ksm-control-scripts.org |
faf04ee2 | 23 | tar czf ksm-control-scripts.org.tar.gz ksm-control-scripts.org |
03e54684 | 24 | |
faf04ee2 DM |
25 | ksm-control-scripts.org/ksm.init: ksm-control-scripts.org.tar.gz |
26 | tar xzf ksm-control-scripts.org.tar.gz | |
27 | touch $@ | |
03e54684 DM |
28 | |
29 | .PHONY: upload | |
30 | upload: ${KSM_DEB} | |
35de7803 | 31 | tar cf - ${KSM_DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist bookworm |
03e54684 DM |
32 | |
33 | .PHONY: distclean | |
34 | distclean: clean | |
35 | rm -rf ksm-control-scripts.org | |
36 | ||
37 | .PHONY: clean | |
38 | clean: | |
3fb328dc DM |
39 | rm -rf *~ ksm-control-scripts ${PACKAGE}_* |
40 | ||
72418985 TL |
41 | .PHONY: deb |
42 | deb: ${KSM_DEB} | |
43 | ||
3fb328dc DM |
44 | .PHONY: dinstall |
45 | dinstall: ${KSM_DEB} | |
46 | dpkg -i ${KSM_DEB} |