summaryrefslogtreecommitdiff
path: root/gcc/ch
diff options
context:
space:
mode:
authorburley <burley@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-22 08:49:36 +0000
committerburley <burley@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-22 08:49:36 +0000
commitbfcba12dd2475458e6f67bc2c0966451b49fc469 (patch)
treeba621587c9761eda2f90d62ec9556008acf4c724 /gcc/ch
parent9b1c5b76dd287278ebb6dab5c5d0d60a4ee22a48 (diff)
downloadgcc-bfcba12dd2475458e6f67bc2c0966451b49fc469.tar.gz
improve wall of separation between build and install
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25367 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ch')
-rw-r--r--gcc/ch/ChangeLog12
-rw-r--r--gcc/ch/Make-lang.in15
2 files changed, 22 insertions, 5 deletions
diff --git a/gcc/ch/ChangeLog b/gcc/ch/ChangeLog
index a76fe91bddf..2c3f9385974 100644
--- a/gcc/ch/ChangeLog
+++ b/gcc/ch/ChangeLog
@@ -1,4 +1,16 @@
Sun Jan 31 20:34:29 1999 Zack Weinberg <zack@rabi.columbia.edu>
+1999-02-20 Craig Burley <craig@jcb-sc.com>
+
+ * Make-lang.in (CHILL.info): Depend on intermediate ch/chill.info
+ target instead of the chill.texi file.
+ (ch/chill.info): New target, depends on the chill.texi source file.
+ Its command writes ch/chill.info instead of chill.info.
+ (CHILL.install-info): Install from ch/chill.info instead of
+ chill.info.
+ If any ch/chill.info* files exist, delete *all* chill.info* files
+ in $infodir first, not just the ones corresponding to the
+ files to be installed (just in case the docs get smaller).
+
* decl2.c: Don't define flag_no_ident here. Don't process
-f(no-)ident here.
diff --git a/gcc/ch/Make-lang.in b/gcc/ch/Make-lang.in
index 27859f12ba4..e0e94626127 100644
--- a/gcc/ch/Make-lang.in
+++ b/gcc/ch/Make-lang.in
@@ -107,8 +107,10 @@ CHILL.all.cross: chill-cross
CHILL.start.encap: chill
CHILL.rest.encap:
-CHILL.info: $(srcdir)/ch/chill.texi
- $(MAKEINFO) -I$(srcdir)/ch $(srcdir)/ch/chill.texi -o chill.info
+CHILL.info: ch/chill.info
+
+ch/chill.info: $(srcdir)/ch/chill.texi
+ $(MAKEINFO) -I$(srcdir)/ch $(srcdir)/ch/chill.texi -o ch/chill.info
chill.dvi: $(srcdir)/ch/chill.texi $(srcdir)/extend.texi $(srcdir)/invoke.texi $(srcdir)/md.texi $(srcdir)/rtl.texi $(srcdir)/tm.texi
cd ch ; \
@@ -139,10 +141,13 @@ CHILL.install-common:
fi ; \
fi
+# Don't delete $(infodir)/ch.info* unless there's actually new
+# docs to install (in case LANGUAGES didn't contain chill earlier).
CHILL.install-info:
- -for i in chill.info*; do \
- rm -f $(infodir)/$$i; \
- $(INSTALL_DATA) $$i $(infodir)/$$i; \
+ -for i in ch/chill.info*; do \
+ rm -f $(infodir)/chill.info*; \
+ realfile=`echo $$i | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
+ $(INSTALL_DATA) $$i $(infodir)/$$realfile; \
done
CHILL.install-man: