# We want a slightly different version for the unregisterised way, so we make
# AutoApply on a per-way basis (eg. AutoApply_p.cmm).
+ifneq "$(DOING_BIN_DIST)" "YES"
+
AUTO_APPLY_CMM = AutoApply$(_way).cmm
ifneq "$(BootingFromHc)" "YES"
CLEAN_FILES += $(AUTO_APPLY_CMM)
+endif
+
# -----------------------------------------------------------------------------
#
# Building DLLs is only supported on mingw32 at the moment.
$(HC) $(HC_OPTS) -S $< -o $@
endif
-include $(TOP)/mk/package.mk
-
#-----------------------------------------------------------------------------
#
# Files to install
#
# binary-dist
+include $(TOP)/mk/target.mk
+
binary-dist:
$(INSTALL_DIR) $(BIN_DIST_DIR)/rts
$(INSTALL_DIR) $(BIN_DIST_DIR)/rts/gmp
ifneq "$(INSTALL_LIBEXECS)" ""
$(INSTALL_PROGRAM) $(INSTALL_LIBEXECS) $(BIN_DIST_DIR)/rts/
endif
-
-include $(TOP)/mk/target.mk