[PATCH app-twm 1/2] lex & yacc: only header file needs to be in BUILT_SOURCES

Gaetan Nadon memsize at videotron.ca
Mon Mar 7 16:36:48 PST 2011


http://www.gnu.org/software/automake/manual/automake.html#Yacc-and-Lex

This completes reversal of commit ea03b6bcd1045dfc0d6947e4858de8994d61170b
The Makefile generates a valid "gram.h: gram.c" rule.
The Makefile already has gram.c gram.h and lex.c in the
maintainer-clean-generic target.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 src/Makefile.am |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index cb6f615..da7ad75 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -65,10 +65,8 @@ twm_SOURCES =   \
 	gram.y \
 	lex.l
 
-BUILT_SOURCES = gram.h gram.c lex.c deftwmrc.c
-MAINTAINERCLEANFILES = $(BUILT_SOURCES)
-
-gram.h: gram.c
+BUILT_SOURCES = gram.h deftwmrc.c
+MAINTAINERCLEANFILES = deftwmrc.c
 
 deftwmrc.c:  system.twmrc
 	$(AM_V_GEN)rm -f $@ ; \
-- 
1.6.0.4



More information about the xorg-devel mailing list