OSDN Git Service

2008-12-02 Jakub Jelinek <jakub@redhat.com>
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Dec 2008 17:38:39 +0000 (17:38 +0000)
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Dec 2008 17:38:39 +0000 (17:38 +0000)
    Diego Novillo  <dnovillo@google.com>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142365 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fortran/ChangeLog
gcc/fortran/Make-lang.in

index d3ae07f..819113b 100644 (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
index 0335a21..6288732 100644 (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
 #\f
 # Install hooks:
 # f951 is installed elsewhere as part of $(COMPILERS).