X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=3e530dd3aecbc5258f8fd1869fb56d552ee35fbf;hb=c2b9fa70310e6fd5e55f70d69868254ee1881c9c;hp=51f7cdb9722714db1329871b28d5f1aa5e8c6422;hpb=7fdcd2fcbf71d97e15218a79fdc40e9a6f235276;p=lxc-userspace.git diff --git a/Makefile b/Makefile index 51f7cdb..3e530dd 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,10 @@ -all: vsh setns.so - +all: vsh setns + vsh: vsh.c gcc vsh.c -o vsh setns: setns.c python setup.py build - ########## sync # for use with the test framework; push local stuff on a test node @@ -20,7 +19,7 @@ setns: setns.c # $ export NODE=vnode01.pl.sophia.inria.fr # and then just run # $ make sync -# this will attempt to compile vsh from vsh.c (and will push Makefile.vsh in /usr/sbin/) +# this will attempt to compile vsh from vsh.c # so you might have to yum install gcc LOCAL_RSYNC_EXCLUDES := --exclude '*.pyc' @@ -38,10 +37,12 @@ ifeq (,$(NODEURL)) @echo " e.g. make sync NODE=vnode01.inria.fr" @exit 1 else - +$(RSYNC) ./lxcsu ./lxcsu-internal ./vsh.c ./Makefile.vsh $(NODEURL)/usr/sbin/ - ssh -i $(NODE).key.rsa root@$(NODE) make -C /usr/sbin -f Makefile.vsh vsh - ssh -i $(NODE).key.rsa root@$(NODE) chown root:root /usr/sbin/lxcsu /usr/sbin/vsh - ssh -i $(NODE).key.rsa root@$(NODE) chmod u+s /usr/sbin/lxcsu /usr/sbin/vsh + +$(RSYNC) ./lxcsu ./lxcsu-internal ./vsh.c $(NODEURL)/usr/sbin/ + ssh -i $(NODE).key.rsa root@$(NODE) chown root:root /usr/sbin/lxcsu + ssh -i $(NODE).key.rsa root@$(NODE) chmod u+s /usr/sbin/lxcsu + ssh -i $(NODE).key.rsa root@$(NODE) gcc -o /usr/sbin/vsh /usr/sbin/vsh.c + ssh -i $(NODE).key.rsa root@$(NODE) chown root:root /usr/sbin/vsh + ssh -i $(NODE).key.rsa root@$(NODE) chmod u+s /usr/sbin/vsh endif ### fetching the key @@ -73,4 +74,5 @@ install: setns vsh install -D -m 755 lxcsu /usr/sbin/lxcsu install -D -m 755 lxcsu-internal /usr/sbin/lxcsu-internal chmod u+s /usr/sbin/lxcsu + chmod u+s /usr/sbin/vsh cp build/lib*/setns.so /usr/sbin