aboutsummaryrefslogtreecommitdiff
path: root/Makefile.tpl
diff options
context:
space:
mode:
authorNathanael Nerode <neroden@gcc.gnu.org>2003-07-28 03:25:51 +0000
committerNathanael Nerode <neroden@gcc.gnu.org>2003-07-28 03:25:51 +0000
commitb4acb5ef4bb1cbe6e41ef20adcf4317ef118ee6f (patch)
tree996e98e1f7bbb1ba924a29fffb14bc54a1d0da1e /Makefile.tpl
parent447673ded110ce946a3c46f363052a832b740fc8 (diff)
downloadgcc-b4acb5ef4bb1cbe6e41ef20adcf4317ef118ee6f.zip
gcc-b4acb5ef4bb1cbe6e41ef20adcf4317ef118ee6f.tar.gz
gcc-b4acb5ef4bb1cbe6e41ef20adcf4317ef118ee6f.tar.bz2
Makefile.tpl: Use 'mkinstalldirs' rather than 'mkdir' when...
* Makefile.tpl: Use 'mkinstalldirs' rather than 'mkdir' when creating target and build subdirs to build all parent dirs as needed. * Makefile.in: Rebuild. * configure.in: Don't build dirs explicitly here. * configure: Rebuild. From-SVN: r69871
Diffstat (limited to 'Makefile.tpl')
-rw-r--r--Makefile.tpl9
1 files changed, 3 insertions, 6 deletions
diff --git a/Makefile.tpl b/Makefile.tpl
index 120fbc4..c7e23b2 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -779,8 +779,7 @@ TAGS: do-TAGS
maybe-configure-build-[+module+]:
configure-build-[+module+]:
@test ! -f $(BUILD_SUBDIR)/[+module+]/Makefile || exit 0; \
- [ -d $(BUILD_SUBDIR)/[+module+] ] || \
- mkdir $(BUILD_SUBDIR)/[+module+];\
+ $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/[+module+] ; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
AR="$(AR_FOR_BUILD)"; export AR; \
@@ -950,15 +949,13 @@ maybe-configure-target-[+module+]:
# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
$(TARGET_SUBDIR)/[+module+]/multilib.out: multilib.out
- @[ -d $(TARGET_SUBDIR)/[+module+] ] || \
- mkdir $(TARGET_SUBDIR)/[+module+]; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/[+module+] ; \
rm -f $(TARGET_SUBDIR)/[+module+]/Makefile || : ; \
cp multilib.out $(TARGET_SUBDIR)/[+module+]/multilib.out
configure-target-[+module+]: $(TARGET_SUBDIR)/[+module+]/multilib.out
@test ! -f $(TARGET_SUBDIR)/[+module+]/Makefile || exit 0; \
- [ -d $(TARGET_SUBDIR)/[+module+] ] || \
- mkdir $(TARGET_SUBDIR)/[+module+];\
+ $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/[+module+] ; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \