summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-04-17 15:55:30 -0400
committerJakob Kaivo <jkk@ung.org>2022-04-17 15:55:30 -0400
commit59ddf28516c22963f0e4f04d793f28f7d00db401 (patch)
treeaa92fdf538779071eebd2bdc26a3e2f595a6dc8a /Makefile
parentde4091fec9cd5716445ae40f95789188e018d476 (diff)
use custom yylex() to directly parse command line arguments
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 33e958f..3ebd801 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,5 @@
-expr: expr.c y.tab.c y.tab.h
- $(CC) -g -o $@ expr.c y.tab.c -ll -ly
-
-expr.c: expr.l
- lex -t expr.l > expr.c
+expr: y.tab.c y.tab.h
+ $(CC) -g -o $@ y.tab.c -ly
y.tab.c y.tab.h: expr.y
yacc -d expr.y