[project @ 1998-01-07 12:28:50 by simonm]
[ghc-hetmet.git] / Makefile
index a4d7bfe..2a996f0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,7 @@ BIN_DIST_TOP= distrib/Makefile-bin.in \
 
 binary-dist::
        @for i in $(BIN_DIST_TOP); do \
-         if [ -e $$i ]; then \
+         if test -f "$$i"; then \
             echo cp $$i $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME); \
             cp $$i $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME); \
          fi; \
@@ -67,6 +67,7 @@ binary-dist::
        echo "PACKAGE_SH_SCRIPTS = $($(Project)BinDistShScripts)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
        echo "PACKAGE_PRL_SCRIPTS = $($(Project)BinDistPrlScripts)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
        echo "PACKAGE_LIB_PRL_SCRIPTS = $($(Project)BinDistLibPrlScripts)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
+       echo "PACKAGE_BINS = $($(Project)BinDistBins)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
        cat $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile-bin.in >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
        @echo "Generating a shippable configure script.."
        $(MV) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/configure-bin.in $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/configure.in