diff options
author | Mike Stump <mrs@gcc.gnu.org> | 1997-08-01 17:21:46 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 1997-08-01 17:21:46 +0000 |
commit | 8dff10278c53da7ae8ee33127897792d1788a16f (patch) | |
tree | 8d4fca6d688aad2bcf077b147146bb0433bd54b7 /gcc/cp/Make-lang.in | |
parent | 5e5b9f695084641d6096a525f3ac6181ee33d166 (diff) | |
download | gcc-8dff10278c53da7ae8ee33127897792d1788a16f.zip gcc-8dff10278c53da7ae8ee33127897792d1788a16f.tar.gz gcc-8dff10278c53da7ae8ee33127897792d1788a16f.tar.bz2 |
92th Cygnus<->FSF quick merge
From-SVN: r14576
Diffstat (limited to 'gcc/cp/Make-lang.in')
-rw-r--r-- | gcc/cp/Make-lang.in | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in index 47cf4de..6748974 100644 --- a/gcc/cp/Make-lang.in +++ b/gcc/cp/Make-lang.in @@ -157,21 +157,23 @@ new2.o: cc1plus $(srcdir)/cp/new2.cc # We want to update cplib2.txt if any of the source files change... cplib2.txt: $(CXX_LIB2SRCS) $(CXX_EXTRA_HEADERS) cplib2.ready - if [ -f cc1plus ]; then \ - echo $(CXX_LIB2FUNCS) > cplib2.new; \ - else \ - echo "" > cplib2.new; \ - fi + case " $(LANGUAGES) " in \ + *" "[cC]"++ "*) \ + echo $(CXX_LIB2FUNCS) > cplib2.new;; \ + *) \ + echo "" > cplib2.new;; \ + esac mv -f cplib2.new cplib2.txt # Or if it would be different. cplib2.ready: $(GCC_PASSES) $(LANGUAGES) $(LIBGCC2_DEPS) stmp-int-hdrs @if [ -r cplib2.txt ]; then \ - if [ -f cc1plus ]; then \ - echo $(CXX_LIB2FUNCS) > cplib2.new; \ - else \ - echo "" > cplib2.new; \ - fi; \ + case " $(LANGUAGES) " in \ + *" "[cC]"++ "*) \ + echo $(CXX_LIB2FUNCS) > cplib2.new;; \ + *) \ + echo "" > cplib2.new;; \ + esac; \ if cmp -s cplib2.new cplib2.txt; then true; else \ touch cplib2.ready; \ fi; \ |