- $(RM) -rf $(BIN_DIST_INST_SUBDIR)
- $(RM) -rf ghc*
- $(RM) HelloWorld HelloWorld.o HelloWorld.hi output
- # --force-local makes tar not think that c:/foo refers to a remote file
- $(TAR) --force-local -jxf $(FPTOOLS_TOP_ABS)/$(BIN_DIST_TAR_BZ2)
+ "$(RM)" $(RM_OPTS_REC) $(BIN_DIST_INST_SUBDIR)
+ "$(RM)" $(RM_OPTS_REC) a/b/c/*
+ "$(RM)" $(RM_OPTS) HelloWorld HelloWorld.o HelloWorld.hi output
+# We use the a/b/c subdirectory as configure looks for install-sh in
+# . .. ../.. and we don't want it to find the build system's install-sh.
+#
+# NB. tar has funny interpretation of filenames sometimes (thinking
+# c:/foo is a remote file), so it's safer to bzip and then pipe into
+# tar rather than using tar -xjf:
+ cd a/b/c/ && $(BZIP2_CMD) -cd ../../../$(BIN_DIST_TEST_TAR_BZ2) | $(TAR_CMD) -xf -