Makefile.in (.y.c): Only enable production rule when maintaining.
authorLoren J. Rittle <ljrittle@acm.org>
Fri, 14 Mar 2003 21:36:28 +0000 (21:36 +0000)
committerLoren J. Rittle <ljrittle@gcc.gnu.org>
Fri, 14 Mar 2003 21:36:28 +0000 (21:36 +0000)
* Makefile.in (.y.c): Only enable production rule when
maintaining.

From-SVN: r64371

gcc/intl/ChangeLog
gcc/intl/Makefile.in

index 1fe7f37090b58950a820a850d149941a535571e4..4c1f235fd792c9f7b99006dc225fc5b3e42ebf56 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-14  Loren J. Rittle <ljrittle@acm.org>
+
+       * Makefile.in (.y.c): Only enable production rule when
+       maintaining.
+
 2002-05-25  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
 
        * gettextP.h (SWAP): Change parameter type to unsigned int.
index 94d7576a5628096396ba1959de9cc957c116b0ee..645cd33c1567b2bc6fb8bb1701550c5bb1d8a592 100644 (file)
@@ -95,9 +95,12 @@ LTV_AGE=0
 .c.lo:
        $(LIBTOOL) --mode=compile $(COMPILE) $<
 
+# Unless maintaining, suppress (a) smart makes who think they know how to
+# automake Yacc files and (b) makes who handle VPATH search of generated
+# files differently than GNU make.
 .y.c:
-       $(YACC) $(YFLAGS) --output $@ $<
-       rm -f $*.h
+@MAINT@        $(YACC) $(YFLAGS) --output $@ $<
+@MAINT@        rm -f $*.h
 
 .sin.sed:
        sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $< > t-$@