summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2005-08-02 18:08:48 +0000
committerKeith Packard <keithp@keithp.com>2005-08-02 18:08:48 +0000
commitea03b6bcd1045dfc0d6947e4858de8994d61170b (patch)
treea2cfb3faa866a6f06a8c27e94d47685e672b8924
parenta12f281be43c1c86147fb89c99484ac558f64425 (diff)
Mark generated files as BUILT_SOURCES and CLEANFILES to ensure they are
regenerated after 'make clean' and to make parallel builds work right.
-rw-r--r--ChangeLog9
-rw-r--r--src/Makefile.am5
2 files changed, 13 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e69de29..b710ad3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -0,0 +1,9 @@
+2005-08-02 Keith Packard <keithp@keithp.com>
+
+ * src/Makefile.am:
+2005-08-02 Keith Packard <keithp@keithp.com>
+
+ * Makefile.am:
+ Mark generated files as BUILT_SOURCES and CLEANFILES
+ to ensure they are regenerated after 'make clean' and
+ to make parallel builds work right.
diff --git a/src/Makefile.am b/src/Makefile.am
index c530057..6481938 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -60,7 +60,10 @@ twm_SOURCES = \
gram.y \
lex.l
-BUILT_SOURCES = gram.h deftwmrc.c
+BUILT_SOURCES = gram.h gram.c lex.c deftwmrc.c
+CLEANFILES = $(BUILT_SOURCES)
+
+gram.h: gram.c
deftwmrc.c: system.twmrc
rm -f $@