From f2830e800f6cefad419e48a899cd08a64920ee83 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 2 Dec 2008 18:38:39 +0100 Subject: [PATCH] Make-lang.in (install-finclude-dir): Use mkinstalldirs and don't remove the finclude directory beforehand. 2008-12-02 Jakub Jelinek Diego Novillo * Make-lang.in (install-finclude-dir): Use mkinstalldirs and don't remove the finclude directory beforehand. Co-Authored-By: Diego Novillo From-SVN: r142365 --- gcc/fortran/ChangeLog | 6 ++++++ gcc/fortran/Make-lang.in | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index d3ae07f..819113b 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2008-12-02 Jakub Jelinek + Diego Novillo + + * Make-lang.in (install-finclude-dir): Use mkinstalldirs + and don't remove the finclude directory beforehand. + 2008-12-02 Janus Weil PR fortran/36704 diff --git a/gcc/fortran/Make-lang.in b/gcc/fortran/Make-lang.in index 0335a21..6288732 100644 --- a/gcc/fortran/Make-lang.in +++ b/gcc/fortran/Make-lang.in @@ -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). -- 2.7.4