summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-08-02 16:12:37 +0000
committerIan Lynagh <igloo@earth.li>2009-08-02 16:12:37 +0000
commit4a5569ff37ae771560e56b564f3b15477b828a79 (patch)
tree8ddeff4260f9cdcb62a527136c3bc804f7ffcb2c /mk
parent6f476448854b3775b806b6a07a530aa2b70ea02f (diff)
downloadhaskell-4a5569ff37ae771560e56b564f3b15477b828a79.tar.gz
Fix permissions when installing
Diffstat (limited to 'mk')
-rw-r--r--mk/config.mk.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index fa9720d158..6c4de5b59c 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -494,6 +494,8 @@ INSTALL_GROUP =
# Invocations of `install' for the four different classes
# of targets:
#
+CREATE_SCRIPT = create () { touch $$1 && chmod 755 $$1 ; } && create
+CREATE_DATA = create () { touch $$1 && chmod 644 $$1 ; } && create
INSTALL_PROGRAM = $(INSTALL) -m 755
INSTALL_SCRIPT = $(INSTALL) -m 755
INSTALL_SHLIB = $(INSTALL) -m 755
@@ -501,7 +503,7 @@ INSTALL_DATA = $(INSTALL) -m 644
INSTALL_HEADER = $(INSTALL) -m 644
INSTALL_MAN = $(INSTALL) -m 644
INSTALL_DOC = $(INSTALL) -m 644
-INSTALL_DIR = $(MKDIRHIER)
+INSTALL_DIR = $(INSTALL) -m 755 -d
#
# runhaskell and hsc2hs are special, in that other compilers besides