git://git.onelab.eu
/
lxc-userspace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4dd3660
)
Support conventional invocation of make
author
Sapan Bhatia
<gwsapan@gmail.com>
Mon, 12 Aug 2013 20:39:46 +0000
(16:39 -0400)
committer
Sapan Bhatia
<gwsapan@gmail.com>
Mon, 12 Aug 2013 20:39:46 +0000
(16:39 -0400)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
453ddc4
..
51f7cdb
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,7
+1,12
@@
-all:
- python setup.py build
+all: vsh setns.so
+
+vsh: vsh.c
gcc vsh.c -o vsh
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
# howto use: go on testmaster in the build you want to use and just run
########## sync
# for use with the test framework; push local stuff on a test node
# howto use: go on testmaster in the build you want to use and just run
@@
-59,3
+64,13
@@
else
@echo "FETCHING key"
+scp $(KEYURL) $@
endif
@echo "FETCHING key"
+scp $(KEYURL) $@
endif
+
+### poor man's install
+
+install: setns vsh
+ mkdir -p /usr/sbin
+ install -D -m 755 vsh /usr/sbin/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
+ cp build/lib*/setns.so /usr/sbin