summaryrefslogtreecommitdiff
path: root/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
commit9d990b3620995298832ce62e157facb130be0bd6 (patch)
tree47fa4a07cc29bac0ac9098f79f63c2bfe87d99f2 /mk
parenta0f8eff7b5907758ac836b6bc370387a677d977b (diff)
downloadmc-9d990b3620995298832ce62e157facb130be0bd6.tar.gz
Add knowledge that gram.h is generated from gram.y
Diffstat (limited to '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