Make "make clean" in ghc/ only clean the stage we want to clean
[ghc-hetmet.git] / driver / ghc / Makefile
index 69abe6c..fc9bb4a 100644 (file)
@@ -11,7 +11,7 @@ include $(TOP)/mk/boilerplate.mk
 ifneq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
 LINK = ghc
 LINK_TARGET = $(LINK)-$(ProjectVersion)
-INSTALLED_SCRIPT=$(bindir)/$(LINK_TARGET)
+INSTALLED_SCRIPT=$(DESTDIR)$(bindir)/$(LINK_TARGET)
 install::
        $(RM) -f $(INSTALLED_SCRIPT)
        echo "#!$(SHELL)"                                 >> $(INSTALLED_SCRIPT)
@@ -23,4 +23,6 @@ endif
 
 # -----------------------------------------------------------------------------
 
+include $(TOP)/mk/bindist.mk
+
 include $(TOP)/mk/target.mk