forked from rosedu/vmchecker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (42 loc) · 1.23 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# See LICENSE file for license details.
MAKEFLAGS += --no-print-directory
COMPONENTS:= VMExecutor
all:
@echo " run make tester-dist or make storer-dist"
dot_vmcheckerrc-storer:
@if [ ! -f ~/.vmcheckerrc ]; then \
ln -s `pwd`/vmchecker_storer.ini ~/.vmcheckerrc;\
if [ $$? != 0 ]; then \
echo "failed creating .vmcheckerrc"; \
exit 1; \
fi \
fi
dot_vmcheckerrc-tester:
@if [ ! -f ~/.vmcheckerrc ]; then \
ln -s `pwd`/vmchecker_tester.ini ~/.vmcheckerrc;\
if [ $$? != 0 ]; then \
echo "failed creating .vmcheckerrc"; \
exit 1; \
fi \
fi
storer-dist: dot_vmcheckerrc-storer
./bin/initialise_course.py storer
tester-dist: dot_vmcheckerrc-tester
@bin/assert_python_modules_installed.py paramiko pyinotify
@for i in $(COMPONENTS); do \
cd $$i && echo " -- Enter -- $$i to make $@" && $(MAKE) $@ && cd ..; \
done;
./bin/initialise_course.py tester
mkdir -p ./executor_jobs/
clean:
@for i in $(COMPONENTS); do \
cd $$i && echo " -- Enter -- $$i to make $@" && $(MAKE) $@ && cd ..; \
done;
rm -vf bin/semctl bin/vm_executor
rm -f *~ */*~
rm -f bin/*~ bin/*.pyc
@for d in queue tmpunzip; do \
if [ -d $$d ]; then \
rmdir --ignore-fail-on-non-empty $$d; \
fi; \
done;