summaryrefslogtreecommitdiff
path: root/rules/build-perl.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-05-30 22:00:21 +0000
committerIan Lynagh <igloo@earth.li>2009-05-30 22:00:21 +0000
commit0ef6ba7b28187a4bf5309f9702eeaf53a281204b (patch)
tree653c84d5647c6efa71836dbd7a7231b2ae725988 /rules/build-perl.mk
parentd5629b335a3254612887be8091b76dbdf2b582f8 (diff)
downloadhaskell-0ef6ba7b28187a4bf5309f9702eeaf53a281204b.tar.gz
Quote commands that we run, so they work if there are space in their paths
I've also added some missing $s to some makefiles. These aren't technically necessary, but it's nice to be consistent.
Diffstat (limited to 'rules/build-perl.mk')
-rw-r--r--rules/build-perl.mk14
1 files changed, 7 insertions, 7 deletions
diff --git a/rules/build-perl.mk b/rules/build-perl.mk
index 8e31b89275..468572c571 100644
--- a/rules/build-perl.mk
+++ b/rules/build-perl.mk
@@ -36,21 +36,21 @@ clean_$1 : clean_$1_$2
ifneq "$$(BINDIST)" "YES"
$1/$2/$$($1_$2_PROG).prl: $1/$$($1_PERL_SRC) $$(UNLIT)
- $$(MKDIRHIER) $1/$2
- $$(RM) -f $$@
- $$(UNLIT) $$(UNLIT_OPTS) $$< $$@
+ "$$(MKDIRHIER)" $1/$2
+ "$$(RM)" $$(RM_OPTS) $$@
+ "$$(UNLIT)" $$(UNLIT_OPTS) $$< $$@
$1/$2/$$($1_$2_PROG): $1/$2/$$($1_$2_PROG).prl
- $$(RM) -f $$@
+ "$$(RM)" $$(RM_OPTS) $$@
echo '#!$$(PERL)' >> $$@
echo '$$$$TARGETPLATFORM = "$$(TARGETPLATFORM)";' >> $$@
cat $$< >> $$@
$$(EXECUTABLE_FILE) $$@
$$($1_$2_INPLACE): $1/$2/$$($1_$2_PROG)
- $$(MKDIRHIER) $$(dir $$@)
- $$(RM) -f $$@
- $$(CP) $$< $$@
+ "$$(MKDIRHIER)" $$(dir $$@)
+ "$$(RM)" $$(RM_OPTS) $$@
+ "$$(CP)" $$< $$@
$$(EXECUTABLE_FILE) $$@
endif