From 98e224e3da245f29d281df357d27b53acdccb5c7 Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Mon, 7 Mar 2011 16:10:53 -0500 Subject: lex & yacc: only header file needs to be in BUILT_SOURCES 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 --- src/Makefile.am | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index cfd0b44..427761a 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 $@ ; \ -- cgit v1.2.3