-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (39 loc) · 1.6 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
ANALYSIS = errDemo01 errDemo02 errDemo03 errDemo04
TACDEMO = demo01 demo02 demo03 demo04 demo05 demo06
all:
happy -gca ParRnb.y
alex -g LexRnb.x
ghc --make Compiler.hs -o rnbc
-rm -f *.log *.aux *.hi *.o *.dvi *.bak
compiler:
ghc --make Compiler.hs -o rnbc
clean:
-rm -f *.log *.aux *.hi *.o *.dvi
demo: $(TACDEMO)
$(TACDEMO):
@echo
@echo "================= DEMO ================"
@echo
./rnbc tests/$(@).r
@echo
@echo "Output written on file tests/results/"$(@)"-res.txt"
@echo "===========================================================" > tests/results/$(@)-res.txt
@echo "========================= TEST ============================" >> tests/results/$(@)-res.txt
@echo "===========================================================" >> tests/results/$(@)-res.txt
@echo >> tests/results/$(@)-res.txt
cat tests/$(@).r >> tests/results/$(@)-res.txt
@echo >> tests/results/$(@)-res.txt
@echo >> tests/results/$(@)-res.txt
@echo "===========================================================" >> tests/results/$(@)-res.txt
@echo "========================= RESULT ==========================" >> tests/results/$(@)-res.txt
@echo "===========================================================" >> tests/results/$(@)-res.txt
@echo >> tests/results/$(@)-res.txt
./rnbc --nocolor tests/$(@).r >> tests/results/$(@)-res.txt
analysis: $(ANALYSIS)
$(ANALYSIS):
@echo
@echo "=============== ANALYSIS =============="
@echo
./rnbc tests/$(@).r
distclean: clean
-rm -f DocRnb.* LexRnb.* ParRnb.* LayoutRnb.* SkelRnb.* PrintRnb.* TestRnb.* AbsRnb.* TestRnb ErrM.* SharedString.* ComposOp.* Rnb.dtd XMLRnb.* Makefile*