diff options
author | Ian Lynagh <igloo@earth.li> | 2007-06-05 13:39:56 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2007-06-05 13:39:56 +0000 |
commit | 094f9feafaf83190891736ddd8d1d7213f4293c4 (patch) | |
tree | eef84f7271f9122703bda3f463f813708b75ac5f /rts/Makefile | |
parent | db39fbf447d14801fe8ee4555bf51990944865c4 (diff) | |
download | haskell-094f9feafaf83190891736ddd8d1d7213f4293c4.tar.gz |
Install the RTS from a bindist correctly
Diffstat (limited to 'rts/Makefile')
-rw-r--r-- | rts/Makefile | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/rts/Makefile b/rts/Makefile index 184a8440cc..1eebfd6c40 100644 --- a/rts/Makefile +++ b/rts/Makefile @@ -383,17 +383,33 @@ ifneq "$(BootingFromHc)" "YES" $(HC) $(HC_OPTS) -S $< -o $@ endif +include $(TOP)/mk/package.mk + #----------------------------------------------------------------------------- # # Files to install # # Just libHSrts is installed uniformly across ways # -INSTALL_LIBS += $(LIBRARY) ifeq "$(DLLized)" "YES" -INSTALL_PROGS += $(DLL_NAME) gmp/gmp.dll -INSTALL_LIBS += $(patsubst %.a,%_imp.a,$(LIBARY)) +INSTALL_PROGS += gmp/gmp.dll INSTALL_LIBS += gmp/libgmp_imp.a Main.dll_o endif +#----------------------------------------------------------------------------- +# +# binary-dist + +binary-dist: + $(INSTALL_DIR) $(BIN_DIST_DIR)/rts + $(INSTALL_DIR) $(BIN_DIST_DIR)/rts/gmp + $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/rts/ + $(INSTALL_DATA) package.conf.in $(BIN_DIST_DIR)/rts/ +ifneq "$(INSTALL_LIBS)" "" + $(INSTALL_DATA) $(INSTALL_LIBS) $(BIN_DIST_DIR)/rts/ +endif +ifneq "$(INSTALL_LIBEXECS)" "" + $(INSTALL_PROGRAM) $(INSTALL_LIBEXECS) $(BIN_DIST_DIR)/rts/ +endif + include $(TOP)/mk/target.mk |