]> Git Repo - binutils.git/commitdiff
2010-11-19 Jan Kratochvil <[email protected]>
authorTom Tromey <[email protected]>
Fri, 19 Nov 2010 18:10:51 +0000 (18:10 +0000)
committerTom Tromey <[email protected]>
Fri, 19 Nov 2010 18:10:51 +0000 (18:10 +0000)
    Tom Tromey  <[email protected]>

* Makefile.in (.y.c): Directly create $@ from YLWRAP.
(.PHONY): Remove for .y outputs.

gdb/ChangeLog
gdb/Makefile.in

index 6997f0d449289b400a1691889c22d328a0c63be2..39d48ef35ae48ddacf5945ba12e292c4ac9e901f 100644 (file)
@@ -1,3 +1,9 @@
+2010-11-19  Jan Kratochvil  <[email protected]>
+           Tom Tromey  <[email protected]>
+
+       * Makefile.in (.y.c): Directly create $@ from YLWRAP.
+       (.PHONY): Remove for .y outputs.
+
 2010-11-19  Will Drewry  <[email protected]>
            Tavis Ormandy  <[email protected]>
            Jan Kratochvil  <[email protected]>
index 550badfdeb5db7b96491227c83b8782ea93fb1af..debda3647bb7124245b5635263c9a21b54b43328 100644 (file)
@@ -1615,8 +1615,10 @@ po/$(PACKAGE).pot: force
 
 .SUFFIXES: .y .l
 .y.c:
-       $(SHELL) $(YLWRAP) $< y.tab.c [email protected] -- $(YACC) $(YFLAGS)
-       -sed -e '/extern.*malloc/d' \
+       rm -f $@ [email protected]
+       $(SHELL) $(YLWRAP) $< y.tab.c $@ -- $(YACC) $(YFLAGS) && mv $@ [email protected] \
+               || (rm -f $@; false)
+       sed -e '/extern.*malloc/d' \
             -e '/extern.*realloc/d' \
             -e '/extern.*free/d' \
             -e '/include.*malloc.h/d' \
@@ -1625,9 +1627,9 @@ po/$(PACKAGE).pot: force
             -e 's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \
             -e 's/\([ \t;,(]\)free$$/\1xfree/g' \
             -e '/^#line.*y.tab.c/d' \
-         < [email protected] > [email protected]
-       -rm [email protected]
-       mv [email protected] ./$*.c
+            -e "s/^\(#line.*\)`basename $<`/\1`echo $<|sed 's/\//\\\\\//g'`/" \
+         < [email protected] > $@
+       rm -f [email protected]
 .l.c:
        if [ "$(FLEX)" ] && $(FLEX) --version >/dev/null 2>&1; then \
            $(FLEX) -o$@ $< && \
@@ -1651,13 +1653,7 @@ po/$(PACKAGE).pot: force
            false; \
        fi
 
-.PRECIOUS: ada-exp.c ada-lex.c
-.PRECIOUS: c-exp.c
-.PRECIOUS: f-exp.c
-.PRECIOUS: jv-exp.c
-.PRECIOUS: m2-exp.c
-.PRECIOUS: objc-exp.c
-.PRECIOUS: p-exp.c
+.PRECIOUS: ada-exp.c
 
 # XML rules
 
This page took 0.056342 seconds and 4 git commands to generate.