-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (34 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
49
SRC = ./src
BUILD = ./build
JC = javac
default: puzzlesolver
prepare_build:
mkdir $(BUILD)
cp -rv $(SRC)/* $(BUILD)/
clean_build:
find $(BUILD) -type f -name "*.java" -exec rm -rf {} \;
puzzleclient:
cd $(BUILD); $(JC) PuzzleSolverClient.java
puzzleserver:
cd $(BUILD); $(JC) PuzzleSolverServer.java
puzzlesolver: clean prepare_build puzzleclient puzzleserver clean_build
clean:
rm -rf $(BUILD)
generator: cleangen
cd tools; javac PuzzleGenerator.java
cleangen:
rm -f tools/PuzzleGenerator.class
report: cleanreport
#cd ./report; pdflatex relazione.tex; bibtex relazione.aux; pdflatex relazione.tex; pdflatex relazione.tex
cd ./report; pdflatex relazione.tex; pdflatex relazione.tex
mv ./report/relazione.pdf ./relazione.pdf
cleanreport:
rm -f relazione.pdf
find ./report -type f -not -name "*.tex" -not -name "*.bib" -not -name "*.png" -exec rm -f {} \;
submit:
make puzzlesolver
make report
rm -rf build report PuzzleSolver.sublime-workspace .DS_Store .git .gitignore
benchmark: puzzlesolver
cp src/PuzzleBenchmark.java $(BUILD)
cd $(BUILD); javac PuzzleBenchmark.java; jar cfe ../PuzzleBenchmark.jar PuzzleBenchmark ./*