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.
This commit is contained in:
parent
d53d4ac5aa
commit
954d8cae71
|
@ -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>
|
2010-11-19 Will Drewry <wad@google.com>
|
||||||
Tavis Ormandy <taviso@google.com>
|
Tavis Ormandy <taviso@google.com>
|
||||||
Jan Kratochvil <jan.kratochvil@redhat.com>
|
Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
|
@ -1615,8 +1615,10 @@ po/$(PACKAGE).pot: force
|
||||||
|
|
||||||
.SUFFIXES: .y .l
|
.SUFFIXES: .y .l
|
||||||
.y.c:
|
.y.c:
|
||||||
$(SHELL) $(YLWRAP) $< y.tab.c $@.tmp -- $(YACC) $(YFLAGS)
|
rm -f $@ $@.tmp
|
||||||
-sed -e '/extern.*malloc/d' \
|
$(SHELL) $(YLWRAP) $< y.tab.c $@ -- $(YACC) $(YFLAGS) && mv $@ $@.tmp \
|
||||||
|
|| (rm -f $@; false)
|
||||||
|
sed -e '/extern.*malloc/d' \
|
||||||
-e '/extern.*realloc/d' \
|
-e '/extern.*realloc/d' \
|
||||||
-e '/extern.*free/d' \
|
-e '/extern.*free/d' \
|
||||||
-e '/include.*malloc.h/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\([ \t]*[&(),]\)/\1xfree\2/g' \
|
||||||
-e 's/\([ \t;,(]\)free$$/\1xfree/g' \
|
-e 's/\([ \t;,(]\)free$$/\1xfree/g' \
|
||||||
-e '/^#line.*y.tab.c/d' \
|
-e '/^#line.*y.tab.c/d' \
|
||||||
< $@.tmp > $@.new
|
-e "s/^\(#line.*\)`basename $<`/\1`echo $<|sed 's/\//\\\\\//g'`/" \
|
||||||
-rm $@.tmp
|
< $@.tmp > $@
|
||||||
mv $@.new ./$*.c
|
rm -f $@.tmp
|
||||||
.l.c:
|
.l.c:
|
||||||
if [ "$(FLEX)" ] && $(FLEX) --version >/dev/null 2>&1; then \
|
if [ "$(FLEX)" ] && $(FLEX) --version >/dev/null 2>&1; then \
|
||||||
$(FLEX) -o$@ $< && \
|
$(FLEX) -o$@ $< && \
|
||||||
|
@ -1651,13 +1653,7 @@ po/$(PACKAGE).pot: force
|
||||||
false; \
|
false; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
.PRECIOUS: ada-exp.c ada-lex.c
|
.PRECIOUS: ada-exp.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
|
|
||||||
|
|
||||||
# XML rules
|
# XML rules
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue