forked from rosedu/vmchecker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
48 lines (36 loc) · 1.13 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
# Copyright (c) 2008 Lucian Adrian Grijincu ([email protected])
# See LICENSE file for license details.
# One Makefile to rule them all,
# one Makefile to find them,
# one Makefile to bring them all,
# and in the darkness bind them.
MAKEFLAGS += --no-print-directory
COMPONENTS:= VMExecutor
all:
@echo " run make tester-dist or make storer-dist"
vmchecker_root_var:
@if [ "x$VMCHECKER_ROOT" = "x" ]; then \
echo "VMCHECKER_ROOT variable is not set"; \
exit 1; \
fi
storer-dist: vmchecker_root_var
./bin/initialise_course.py storer
tester-dist: vmchecker_root_var
@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;