-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (35 loc) · 952 Bytes
/
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
OSNAME := ${shell uname}
all: clean compile run
clean:
rm -rf bin
rm -f test/*.gif
rm -f test/*.png
rm -f test/*.ast
rm -f test/*.dot
rm -f test/*.res.txt
rm -f test/*/*.dot
rm -f test/*/*.ast
rm -f test/*/*.gif
rm -f test/*/*.png
rm -f test/*/*.res.txt
rm -f test/*/*/*.dot
rm -f test/*/*/*.ast
rm -f test/*/*/*.gif
rm -f test/*/*/*.png
rm -f test/*/*/*.res.txt
rm -f report/code-examples/*.dot
rm -f report/code-examples/*.ast
rm -f report/code-examples/*.gif
rm -f report/code-examples/*.png
rm -f report/code-examples/*.res.txt
compile:
mkdir -p bin
scalac $(COMPILEFLAGS) -classpath lib/*.jar -d bin src/*.scala src/*/*.scala
run:
@if (test "${OSNAME}" = "CYGWIN_NT-6.2-WOW64"); \
then scala -cp "bin;./lib/jython-2.7-b1.jar" tapy.Main $(FILES); fi
@if (test "${OSNAME}" = "Darwin"); \
then scala -cp "bin:./lib/jython-2.7-b1.jar" tapy.Main $(FILES); fi
rm -f test/*.dot
rm -f test/*/*.dot
rm -f test/*/*/*.dot