summaryrefslogtreecommitdiff
path: root/mk/lexyacc.mk
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-11-15 17:07:28 -0800
committerOri Bernstein <ori@eigenstate.org>2015-11-15 19:17:25 -0800
commitfcc859d58857fce2701ee30abd79ed891a46c3b2 (patch)
tree4fc0317015b37aabf01012ad51b96a2912f84896 /mk/lexyacc.mk
parentaf4500539de576c28d982faad6ac8b845ed236ce (diff)
downloadmc-fcc859d58857fce2701ee30abd79ed891a46c3b2.tar.gz
Fix build flags for Clang/Yacc
This allows us to build with -Werror again. Thanks to Ryan Gonzalez.
Diffstat (limited to 'mk/lexyacc.mk')
-rw-r--r--mk/lexyacc.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/mk/lexyacc.mk b/mk/lexyacc.mk
index b8062a1..5306d97 100644
--- a/mk/lexyacc.mk
+++ b/mk/lexyacc.mk
@@ -1,7 +1,9 @@
.SUFFIXES:
%.h %.c: %.y
+ rm -f $*.h y.tab.h
yacc -d -o$*.c $<
+ [ -f y.tab.h ] && mv y.tab.h $*.h
%.c: %.l
flex -o$*.c $<