-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (25 loc) · 926 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
LEXERDIR = Lexer
PARSERDIR = Parser
SEMANTICDIR = Semantic
TRANSPILERDIR = Transpiler
.PHONY: all lexer parser semantic transpiler test clean
all: lexer parser semantic transpiler
lexer:
$(MAKE) --no-print-directory -C $(LEXERDIR)
parser:
$(MAKE) --no-print-directory -C $(PARSERDIR)
semantic:
$(MAKE) --no-print-directory -C $(SEMANTICDIR)
transpiler:
$(MAKE) --no-print-directory -C $(TRANSPILERDIR)
test: lexer parser semantic transpiler
$(MAKE) --no-print-directory -C $(LEXERDIR) test
$(MAKE) --no-print-directory -C $(PARSERDIR) test
$(MAKE) --no-print-directory -C $(SEMANTICDIR) test
# $(MAKE) --no-print-directory -C $(TRANSPILERDIR) test
clean:
$(MAKE) --no-print-directory -C $(LEXERDIR) clean
$(MAKE) --no-print-directory -C $(PARSERDIR) clean
$(MAKE) --no-print-directory -C $(SEMANTICDIR) clean
$(MAKE) --no-print-directory -C $(TRANSPILERDIR) clean
rm -f **/*.o **/*.out **/*.exe **/.*.cpp