Don't rely on tar supporting -z; trac #3841
[ghc-hetmet.git] / mk / install.mk.in
index 3aed8b7..4d20310 100644 (file)
@@ -45,8 +45,8 @@
 define set_default
 # $1 = variable to set
 # $2 = default value to use, if configure didn't expand it
-# If $1 starts with an @ then configure didn't set it,
-# so set it to a sensible value
+# If $1 starts with an @ then configure didn't set it (because a version
+# of autoconf that is too old was used), so set it to a sensible value
 ifneq "$$(filter @%,$$($1))" ""
 $1 = $2
 endif
@@ -67,9 +67,6 @@ libdir          = @libdir@
 includedir      = @includedir@
 mandir          = @mandir@
 
-# New autoconf (>= 2.60?) make a configure with --docdir=DIR etc flags.
-# However, in order to support older autoconf's we don't use them.
-
 docdir = @docdir@
 $(eval $(call set_default,docdir,$${datarootdir}/doc/ghc))
 
@@ -133,8 +130,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
+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