aboutsummaryrefslogtreecommitdiff
path: root/gcc/f
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-11-18 15:55:38 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2000-11-18 15:55:38 +0000
commit311d8afa84982538f1e2999f46493a061a30a11b (patch)
tree0476164db5f489edeb36e35a87591ef9bb298bda /gcc/f
parent4a58aab6a74b673d3c713ed429363bccc080df39 (diff)
downloadgcc-311d8afa84982538f1e2999f46493a061a30a11b.zip
gcc-311d8afa84982538f1e2999f46493a061a30a11b.tar.gz
gcc-311d8afa84982538f1e2999f46493a061a30a11b.tar.bz2
Make-lang.in (INTDOC_DEPS): New macro.
* Make-lang.in (INTDOC_DEPS): New macro. (f/intdoc.texi): Depend on $(INTDOC_DEPS). Build f/intdoc. (f/intdoc): Likewise. Add $(build_exeext). From-SVN: r37543
Diffstat (limited to 'gcc/f')
-rw-r--r--gcc/f/ChangeLog6
-rw-r--r--gcc/f/Make-lang.in17
2 files changed, 20 insertions, 3 deletions
diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog
index 9c118e3..549dbfc 100644
--- a/gcc/f/ChangeLog
+++ b/gcc/f/ChangeLog
@@ -1,3 +1,9 @@
+2000-11-18 Alexandre Oliva <aoliva@redhat.com>
+
+ * Make-lang.in (INTDOC_DEPS): New macro.
+ (f/intdoc.texi): Depend on $(INTDOC_DEPS). Build f/intdoc.
+ (f/intdoc): Likewise. Add $(build_exeext).
+
2000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
* lex.c (ffelex_hash_): Change ggc_alloc_string (var, -1) to
diff --git a/gcc/f/Make-lang.in b/gcc/f/Make-lang.in
index cc6228b..cefe3dc 100644
--- a/gcc/f/Make-lang.in
+++ b/gcc/f/Make-lang.in
@@ -214,12 +214,23 @@ f/g77.dvi: $(srcdir)/f/g77.texi $(srcdir)/f/bugs.texi \
# been found only upon reading the documentation that was automatically
# produced from it.
-$(srcdir)/f/intdoc.texi: f/intdoc$(build_exeext)
+# If the documentation files depended on executables in the build
+# tree, there'd be no way to ship a source tree with the documentation
+# already generated such that `make' wouldn't attempt to rebuilt it.
+# So, we punt and arrange for the documentation files to depend on the
+# dependencies of the executables, not on the executables themselves.
+# But then, we have to build the executables explicitly in their build
+# rules.
+
+INTDOC_DEPS = $(srcdir)/f/intdoc.c $(srcdir)/f/intrin.h $(srcdir)/f/intrin.def
+
+$(srcdir)/f/intdoc.texi: $(INTDOC_DEPS) $(srcdir)/f/intdoc.in
+ $(MAKE) f/intdoc$(build_exeext)
f/intdoc$(build_exeext) > $(srcdir)/f/intdoc.texi
-f/intdoc: f/intdoc.c f/intdoc.h0 f/intrin.h f/intrin.def hconfig.h system.h
+f/intdoc$(build_exeext): $(INTDOC_DEPS) f/intdoc.h0 hconfig.h system.h
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) $(INCLUDES) \
- $(srcdir)/f/intdoc.c -o f/intdoc
+ $(srcdir)/f/intdoc.c -o f/intdoc$(build_exeext)
f/intdoc.h0: f/intdoc.in f/ansify$(build_exeext)
f/ansify$(build_exeext) $(srcdir)/f/intdoc.in \