summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gcc/java/ChangeLog6
-rw-r--r--gcc/java/Make-lang.in11
2 files changed, 11 insertions, 6 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index b943cb754c8..f6116e536f8 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,9 @@
+2001-04-06 Tom Tromey <tromey@redhat.com>
+
+ * Make-lang.in ($(srcdir)/java/parse-scan.c): Run bison from build
+ directory.
+ ($(srcdir)/java/parse.c): Likewise.
+
2001-04-05 Alexandre Petit-Bianco <apbianco@redhat.com>
* gcj.texi: Use `which-gcj' instead of `which-g77.'
diff --git a/gcc/java/Make-lang.in b/gcc/java/Make-lang.in
index 5a52c2d2179..f8a9b2b81ef 100644
--- a/gcc/java/Make-lang.in
+++ b/gcc/java/Make-lang.in
@@ -80,14 +80,13 @@ $(GCJ)-cross$(exeext): $(GCJ)$(exeext)
$(INTL_TARGETS): $(srcdir)/java/parse.c $(srcdir)/java/parse-scan.c
$(srcdir)/java/parse.c: $(srcdir)/java/parse.y
- (cd $(srcdir)/java && \
- $(BISON) -t --name-prefix=java_ $(BISONFLAGS) -o p$$$$.c parse.y && \
- mv -f p$$$$.c parse.c)
+ $(BISON) -t --name-prefix=java_ $(BISONFLAGS) \
+ -o p$$$$.c $(srcdir)/java/parse.y && \
+ mv -f p$$$$.c $(srcdir)/java/parse.c
$(srcdir)/java/parse-scan.c: $(srcdir)/java/parse-scan.y
- (cd $(srcdir)/java && \
- $(BISON) -t $(BISONFLAGS) -o ps$$$$.c parse-scan.y && \
- mv -f ps$$$$.c parse-scan.c)
+ $(BISON) -t $(BISONFLAGS) -o ps$$$$.c $(srcdir)/java/parse-scan.y && \
+ mv -f ps$$$$.c $(srcdir)/java/parse-scan.c
$(srcdir)/java/keyword.h: $(srcdir)/java/keyword.gperf
(cd $(srcdir)/java || exit 1; \
OpenPOWER on IntegriCloud