aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@dcc.unicamp.br>1999-03-18 22:00:18 +0000
committerAlexandre Oliva <oliva@gcc.gnu.org>1999-03-18 22:00:18 +0000
commitb077493b23248763c89f51a5425e415aff473026 (patch)
treed7a58d338a63b2222c6be7449198220311bd3847 /gcc
parenta6374b5872dabbd5bc2245bc05a9ee3ea85a73ed (diff)
downloadgcc-b077493b23248763c89f51a5425e415aff473026.zip
gcc-b077493b23248763c89f51a5425e415aff473026.tar.gz
gcc-b077493b23248763c89f51a5425e415aff473026.tar.bz2
Make-lang.in: ($(INTL_TARGETS)): depend on cp/parse.c
* Make-lang.in: ($(INTL_TARGETS)): depend on cp/parse.c ($(srcdir)/cp/parse.c): moved from ../Makefile.in From-SVN: r25852
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/Make-lang.in8
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 2e521b4..ddbecb5 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+1999-03-19 Alexandre Oliva <oliva@dcc.unicamp.br>
+
+ * Make-lang.in: ($(INTL_TARGETS)): depend on cp/parse.c
+ ($(srcdir)/cp/parse.c): moved from ../Makefile.in
+
1999-03-17 Martin von Löwis <loewis@informatik.hu-berlin.de>
* parse.y (named_complex_class_head_sans_basetype):
diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in
index 8be82bf..b98246a 100644
--- a/gcc/cp/Make-lang.in
+++ b/gcc/cp/Make-lang.in
@@ -82,6 +82,14 @@ g++.c: $(srcdir)/gcc.c
g++spec.o: $(srcdir)/cp/g++spec.c
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/cp/g++spec.c
+$(INTL_TARGETS): $(srcdir)/cp/parse.c
+$(srcdir)/cp/parse.c: $(srcdir)/cp/parse.y
+ @cp_srcdir=`sed -n 's/^srcdir[ ]*=[ ]*//p' cp/Makefile` && \
+ echo "cd cp && $(MAKE) $$cp_srcdir/parse.c" && \
+ cd cp && \
+ $(MAKE) $(SUBDIR_FLAGS_TO_PASS) $(CXX_FLAGS_TO_PASS) \
+ $$cp_srcdir/parse.c
+
# N.B.: This is a copy of the gcc.o rule, with -DLANG_SPECIFIC_DRIVER added.
# It'd be nice if we could find an easier way to do this---rather than have
# to track changes to the toplevel gcc Makefile as well.