diff options
author | Richard Stallman <rms@gnu.org> | 1992-10-03 01:09:38 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-10-03 01:09:38 +0000 |
commit | 9fcedbef6588f4441d67281cd8f042d42af2dfe1 (patch) | |
tree | 885d06c8684697d091b5432705e7aa19bea6fa09 | |
parent | a4f602639c34eb314aa0cca9a1b2d09f44903bbe (diff) | |
download | gcc-9fcedbef6588f4441d67281cd8f042d42af2dfe1.zip gcc-9fcedbef6588f4441d67281cd8f042d42af2dfe1.tar.gz gcc-9fcedbef6588f4441d67281cd8f042d42af2dfe1.tar.bz2 |
(install-common-headers): Install assert.h separately, in includedir,
but not if file exists and lacks the magic comment.
From-SVN: r2309
-rw-r--r-- | gcc/Makefile.in | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 6ad8ddf..43d04f0 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1486,9 +1486,13 @@ install-common-headers: install-dir $(USER_H) gvarargs.h gstdarg.h gstddef.h $(INSTALL_DATA) `basename $$file` $$shelllibsubdir/include/`basename $$file`; \ chmod a-x $$shelllibsubdir/include/`basename $$file`; \ done - -rm -f $(includedir)/assert.h - $(INSTALL_DATA) $(srcdir)/assert.h $(includedir)/assert.h - chmod a-x $(libsubdir)/include/assert.h + if [ -f $(includedir)/assert.h ] && ! grep "This is GCC's version of assert.h." $(includedir)/assert.h; \ + then true; \ + else \ + rm -f $(includedir)/assert.h; \ + $(INSTALL_DATA) $(srcdir)/assert.h $(includedir)/assert.h; \ + chmod a-x $(libsubdir)/include/assert.h; \ + fi -rm -f $(libsubdir)/include/varargs.h $(INSTALL_DATA) $(srcdir)/gvarargs.h $(libsubdir)/include/varargs.h chmod a-x $(libsubdir)/include/varargs.h |