Tom Tromey <tromey@redhat.com>
* automake.in (lang_yacc_target_hook): Make header file depend on
.c file, not .y file.
* lib/am/yacc.am: Non-generic rule changed to depend on %OBJ% (the
.c file) rather than %SOURCE% (the .y file) Removed `.y.h' rule.
* tests/yacc7.test: New file.
* tests/Makefile.am (TESTS): Added yacc7.test.
+2001-08-22 Richard Boulton <richard@tartarus.org>
+ Tom Tromey <tromey@redhat.com>
+
+ * automake.in (lang_yacc_target_hook): Make header file depend on
+ .c file, not .y file.
+ * lib/am/yacc.am: Non-generic rule changed to depend on %OBJ% (the
+ .c file) rather than %SOURCE% (the .y file) Removed `.y.h' rule.
+ * tests/yacc7.test: New file.
+ * tests/Makefile.am (TESTS): Added yacc7.test.
+
2001-08-22 Tim Van Holder <tim.van.holder@pandora.be>
* m4/missing.m4: Require AM_AUX_DIR_EXPAND and use $am_aux_dir.
# Add a dependency for the generated header file, and arrange
# for that file to be included in the distribution.
# FIXME: this fails for `nodist_*_SOURCES'.
- $output_rules .= "${header}: $input\n";
+ $output_rules .= "${header}: $output\n";
&push_dist_common ($header);
# If the files are built in the build directory, then we want
# to remove them with `make clean'. If they are in srcdir
endif !%?MORE-THAN-ONE%
## Also generate a dependency for the .h file.
-## FIXME: does this sort of suffix rule really work?
-if %?GENERIC%
-.%EXT%.h:
- @:
-else !%?GENERIC%
-%BASE%.h: %SOURCE%
+if !%?GENERIC%
+%BASE%.h: %OBJ%
endif !%?GENERIC%
yacc4.test \
yacc5.test \
yacc6.test \
+yacc7.test \
yaccpp.test \
yaccvpath.test
yacc4.test \
yacc5.test \
yacc6.test \
+yacc7.test \
yaccpp.test \
yaccvpath.test