shithub: mc

Download patch

ref: aa4d210e1d4bec63dbd5be6a5b93f38991c87739
parent: b008e4200e7066288922732e81971ca6b799fae4
author: Ori Bernstein <[email protected]>
date: Thu Jun 12 13:03:38 EDT 2014

Add knowledge that gram.h is generated from gram.y

--- 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