X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=distrib%2FMakefile-bin.in;h=6df1e056d8ad176af0d4ba4900b820ef4031b6d3;hp=197a2e1675dd281a848a21d045562a10c57d2f91;hb=a3e027a34f5e956da3875ab629aa2427e520f879;hpb=2b811329caa54eee7c1b159384e1e1aa3a5e9feb diff --git a/distrib/Makefile-bin.in b/distrib/Makefile-bin.in index 197a2e1..6df1e05 100644 --- a/distrib/Makefile-bin.in +++ b/distrib/Makefile-bin.in @@ -169,11 +169,10 @@ config-pkgs :: @for i in $(PACKAGE_LIB_SPLICED_FILES) ""; do \ if test "$$i"; then \ echo "Creating a configured version of $$i .."; \ - if [ -f lib/$(platform)/$$i ]; then $(MV) lib/$(platform)/$$i lib/$(platform)/$$i.bak; fi; \ - $(SED) -e "s|\$$libdir|$(libdir)|g;s|\$$datadir|$(datadir)|g" lib/$(platform)/$$i; \ + $(PERL) -i.bak -lpe 's|\$$libdir|$(libdir)|g;s|\$$datadir|$(datadir)|g' lib/$(platform)/$$i; \ fi; \ done - @if test "$(platform)" == "powerpc-apple-darwin"; then \ + @if test "$(platform)" = "powerpc-apple-darwin"; then \ echo "Configuring install names..."; \ for i in lib/$(platform)/*; do \ sh fix_install_names.sh "$(libdir)" "$$i"; \ @@ -231,7 +230,7 @@ install-bin: if test -n "$$i" ; then $(INSTALL_BIN) bin/$(platform)/$$i$(exeext) $(bindir); fi; \ done; for i in $(PACKAGE_OPT_BINS) ""; do \ - if test -n "$$i" -a ! -e "$(bindir)/$$i" ; then $(INSTALL_BIN) bin/$(platform)/$$i$(exeext) $(bindir); fi; \ + if test -n "$$i" -a ! -f "$(bindir)/$$i" ; then $(INSTALL_BIN) bin/$(platform)/$$i$(exeext) $(bindir); fi; \ done; @for i in $(VERSION_SYMLINKS_FOR) ""; do \ if [ "x$$i" != "x" ]; then \ @@ -273,7 +272,9 @@ show-install-setup: install-docs : install-dirs-docs if test -d share/html ; then $(CP) -r share/html/* $(htmldir) ; fi for i in share/*.ps; do \ - $(CP) $$i $(psdir) ; \ + if test -f "$$i"; then \ + $(CP) $$i $(psdir) ; \ + fi \ done install-dirs-docs: