Skip to content

Commit

Permalink
[Phase1] Fix dependency tree of Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
liqwang authored Oct 19, 2023
1 parent 91e710c commit 1ec597f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phase1/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ BISON=bison
# Dependency Tree
splc: syntax.tab.* lex.yy.c
$(CC) syntax.tab.c -lfl -ly -o bin/splc
lex.yy.c: lex.l syntax.tab.*
lex.yy.c: lex.l
$(FLEX) lex.l
syntax.tab.*: syntax.y
$(BISON) -d syntax.y

lexer: lex.yy.c # For debugging lex.l
lexer: syntax.tab.* lex.yy.c # For debugging lex.l
$(CC) lex.yy.c -lfl -o lexer

.PHONY: clean
Expand Down

0 comments on commit 1ec597f

Please sign in to comment.