X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=driver%2Fghci%2FMakefile;h=94fe4529353a89a3af9ffba959b2aec2b32cf963;hb=6d0dd9aa562a9f96bf875b7260675609e1171b66;hp=bc3d0bb9143c2d1cddba0e93fd8750eddb0723fd;hpb=b18545dd4fc38d2c78d18966d1d9e38474c799e9;p=ghc-hetmet.git diff --git a/driver/ghci/Makefile b/driver/ghci/Makefile index bc3d0bb..94fe452 100644 --- a/driver/ghci/Makefile +++ b/driver/ghci/Makefile @@ -22,6 +22,7 @@ install:: $(RM) -f $(GHCII_SCRIPT) echo "#!$(SHELL)" >> $(GHCII_SCRIPT) echo 'exec "$$0"/../ghc --interactive $${1+"$$@"}' >> $(GHCII_SCRIPT) + chmod +x $(GHCII_SCRIPT) else LINK = ghci LINK_TARGET = $(LINK)-$(ProjectVersion) @@ -36,7 +37,8 @@ install:: endif ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32" -INPLACE_SCRIPT=ghc-pkg-inplace +INPLACE_SCRIPT=ghci-inplace +CLEAN_FILES += $(INPLACE_SCRIPT) all:: $(RM) -f $(INPLACE_SCRIPT) echo "#!$(SHELL)" >> $(INPLACE_SCRIPT) @@ -51,8 +53,6 @@ ghci.res : ghci.rc ghci.ico windres --preprocessor="$(CPP) -xc -DRC_INVOKED" -o ghci.res -i ghci.rc -O coff endif -binary-dist: - $(INSTALL_DIR) $(BIN_DIST_DIR)/driver/ghci - $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/driver/ghci/ +include $(TOP)/mk/bindist.mk include $(TOP)/mk/target.mk