Make-lang.in (install-finclude-dir): Use mkinstalldirs and don't remove the finclude directory beforehand.

2008-12-02  Jakub Jelinek  <jakub@redhat.com>
	    Diego Novillo  <dnovillo@google.com>

	* Make-lang.in (install-finclude-dir): Use mkinstalldirs
	and don't remove the finclude directory beforehand.



Co-Authored-By: Diego Novillo <dnovillo@google.com>

From-SVN: r142365
This commit is contained in:
Jakub Jelinek 2008-12-02 18:38:39 +01:00 committed by Diego Novillo
parent fe5c443ea5
commit f2830e800f
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2008-12-02 Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@google.com>
* Make-lang.in (install-finclude-dir): Use mkinstalldirs
and don't remove the finclude directory beforehand.
2008-12-02 Janus Weil <janus@gcc.gnu.org>
PR fortran/36704

View File

@ -211,9 +211,7 @@ doc/gfc-internals.pdf: $(GFC_INTERNALS_TEXI)
# Create or recreate the gfortran private include file directory.
install-finclude-dir: installdirs
-rm -rf $(DESTDIR)$(libsubdir)/finclude
mkdir $(DESTDIR)$(libsubdir)/finclude
-chmod a+rx $(DESTDIR)$(libsubdir)/finclude
$(mkinstalldirs) -m a+rx $(DESTDIR)$(libsubdir)/finclude
#
# Install hooks:
# f951 is installed elsewhere as part of $(COMPILERS).