diff options
author | Tom Tromey <tromey@redhat.com> | 2010-11-19 18:10:51 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-11-19 18:10:51 +0000 |
commit | 954d8cae714c546dd87fcb19ab32fe50d59cadc1 (patch) | |
tree | 883f1eb0c3655fb979da289930b32ef6d5cdc2a7 | |
parent | d53d4ac5aaf62c631e8d915e049eaf3f52fe24c8 (diff) | |
download | binutils-954d8cae714c546dd87fcb19ab32fe50d59cadc1.zip binutils-954d8cae714c546dd87fcb19ab32fe50d59cadc1.tar.gz binutils-954d8cae714c546dd87fcb19ab32fe50d59cadc1.tar.bz2 |
2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
Tom Tromey <tromey@redhat.com>
* Makefile.in (.y.c): Directly create $@ from YLWRAP.
(.PHONY): Remove for .y outputs.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/Makefile.in | 20 |
2 files changed, 14 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6997f0d..39d48ef 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com> + Tom Tromey <tromey@redhat.com> + + * Makefile.in (.y.c): Directly create $@ from YLWRAP. + (.PHONY): Remove for .y outputs. + 2010-11-19 Will Drewry <wad@google.com> Tavis Ormandy <taviso@google.com> Jan Kratochvil <jan.kratochvil@redhat.com> diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 550badf..debda36 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1615,8 +1615,10 @@ po/$(PACKAGE).pot: force .SUFFIXES: .y .l .y.c: - $(SHELL) $(YLWRAP) $< y.tab.c $@.tmp -- $(YACC) $(YFLAGS) - -sed -e '/extern.*malloc/d' \ + rm -f $@ $@.tmp + $(SHELL) $(YLWRAP) $< y.tab.c $@ -- $(YACC) $(YFLAGS) && mv $@ $@.tmp \ + || (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' \ - < $@.tmp > $@.new - -rm $@.tmp - mv $@.new ./$*.c + -e "s/^\(#line.*\)`basename $<`/\1`echo $<|sed 's/\//\\\\\//g'`/" \ + < $@.tmp > $@ + rm -f $@.tmp .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 |