]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
2001-08-22 Richard Boulton <richard@tartarus.org>
authorTom Tromey <tromey@redhat.com>
Thu, 23 Aug 2001 05:00:34 +0000 (05:00 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 23 Aug 2001 05:00:34 +0000 (05:00 +0000)
    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.

ChangeLog
automake.in
lib/am/yacc.am
tests/Makefile.am
tests/Makefile.in

index bd43fb3d9362d1d5f6cd48712bda7653637a7fdb..1248cef76f6457d64fa990017ef4043bd40890dd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+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.
index e57d2a2d95d524676fd90061edd6f14f77ae7164..6e947abb0fb2354c09185fa56aa57fd06282560d 100755 (executable)
@@ -5203,7 +5203,7 @@ sub lang_yacc_target_hook
        # 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
index c42be056587084a4c1bcab813950615468be5564..6fc6c16ae9e0923f9348a057bbb080d405f8e29a 100644 (file)
@@ -32,10 +32,6 @@ else !%?MORE-THAN-ONE%
 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%
index a508c98f2392f3b1544ddf102b90c7b26df1038b..0ab455b478ec80e47f8284a0dc2986bd4ed9ffc7 100644 (file)
@@ -327,6 +327,7 @@ yacc3.test \
 yacc4.test \
 yacc5.test \
 yacc6.test \
+yacc7.test \
 yaccpp.test \
 yaccvpath.test
 
index d93da1558fc7e2f43a10c323c59d3d0f58bba45c..d8c0ce0e457453ded951ad018231bd20c1f8bb6a 100644 (file)
@@ -395,6 +395,7 @@ yacc3.test \
 yacc4.test \
 yacc5.test \
 yacc6.test \
+yacc7.test \
 yaccpp.test \
 yaccvpath.test