X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FMakefile;h=cd96f7f813e7ba32124173ecf7166d4fc5eafa26;hb=affbe8dae5d7eb350686b42ddbd4f3561b7bd0ec;hp=1eebfd6c40282658bc8b2705a2132c388fbbe28a;hpb=094f9feafaf83190891736ddd8d1d7213f4293c4;p=ghc-hetmet.git diff --git a/rts/Makefile b/rts/Makefile index 1eebfd6..cd96f7f 100644 --- a/rts/Makefile +++ b/rts/Makefile @@ -207,6 +207,8 @@ SRC_MKDEPENDC_OPTS += -DPROFILING -DTHREADED_RTS -DDEBUG # 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" @@ -219,6 +221,8 @@ EXTRA_CMM_SRCS += $(AUTO_APPLY_CMM) CLEAN_FILES += $(AUTO_APPLY_CMM) +endif + # ----------------------------------------------------------------------------- # # Building DLLs is only supported on mingw32 at the moment. @@ -383,8 +387,6 @@ ifneq "$(BootingFromHc)" "YES" $(HC) $(HC_OPTS) -S $< -o $@ endif -include $(TOP)/mk/package.mk - #----------------------------------------------------------------------------- # # Files to install @@ -400,6 +402,8 @@ endif # # binary-dist +include $(TOP)/mk/target.mk + binary-dist: $(INSTALL_DIR) $(BIN_DIST_DIR)/rts $(INSTALL_DIR) $(BIN_DIST_DIR)/rts/gmp @@ -411,5 +415,3 @@ endif ifneq "$(INSTALL_LIBEXECS)" "" $(INSTALL_PROGRAM) $(INSTALL_LIBEXECS) $(BIN_DIST_DIR)/rts/ endif - -include $(TOP)/mk/target.mk