summaryrefslogtreecommitdiff
path: root/mk/lexyacc.mk
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-06-12 17:03:38 -0400
committerOri Bernstein <ori@eigenstate.org>2014-06-12 17:03:38 -0400
commitaa4d210e1d4bec63dbd5be6a5b93f38991c87739 (patch)
tree47fa4a07cc29bac0ac9098f79f63c2bfe87d99f2 /mk/lexyacc.mk
parentb008e4200e7066288922732e81971ca6b799fae4 (diff)
downloadmc-aa4d210e1d4bec63dbd5be6a5b93f38991c87739.tar.gz
Add knowledge that gram.h is generated from gram.y
Diffstat (limited to 'mk/lexyacc.mk')
-rw-r--r--mk/lexyacc.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/lexyacc.mk b/mk/lexyacc.mk
index 51d4e5b..ebd7b19 100644
--- a/mk/lexyacc.mk
+++ b/mk/lexyacc.mk
@@ -1,6 +1,6 @@
NECFLAGS = $(subst -Werror,,$(subst -Wall,,$(CFLAGS)))
-%.c: %.y
+%.h %.c: %.y
yacc -d -o$*.c $<
%.c: %.l