summaryrefslogtreecommitdiff
path: root/includes/Makefile
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-06-05 13:39:56 +0000
committerIan Lynagh <igloo@earth.li>2007-06-05 13:39:56 +0000
commit094f9feafaf83190891736ddd8d1d7213f4293c4 (patch)
treeeef84f7271f9122703bda3f463f813708b75ac5f /includes/Makefile
parentdb39fbf447d14801fe8ee4555bf51990944865c4 (diff)
downloadhaskell-094f9feafaf83190891736ddd8d1d7213f4293c4.tar.gz
Install the RTS from a bindist correctly
Diffstat (limited to 'includes/Makefile')
-rw-r--r--includes/Makefile23
1 files changed, 16 insertions, 7 deletions
diff --git a/includes/Makefile b/includes/Makefile
index cfb2a48446..4b89d52c39 100644
--- a/includes/Makefile
+++ b/includes/Makefile
@@ -4,9 +4,17 @@ TOP = ..
include $(TOP)/mk/boilerplate.mk
#
+# Header files built from the configure script's findings
+#
+H_CONFIG = ghcautoconf.h
+H_PLATFORM = ghcplatform.h
+
+#
# All header files
#
-H_FILES = $(filter-out gmp.h,$(wildcard *.h)) gmp.h
+H_FILES = $(filter-out gmp.h $(H_CONFIG) $(H_PLATFORM),$(wildcard *.h)) gmp.h
+
+ifneq "$(DOING_BIN_DIST)" "YES"
#
# Options
@@ -25,12 +33,6 @@ ifneq "$(GhcWithSMP)" "YES"
SRC_CC_OPTS += -DNOSMP
endif
-#
-# Header file built from the configure script's findings
-#
-H_CONFIG = ghcautoconf.h
-H_PLATFORM = ghcplatform.h
-
boot :: gmp.h
all :: $(H_CONFIG) $(H_PLATFORM)
@@ -160,6 +162,8 @@ endif
CLEAN_FILES += mkGHCConstants$(exeext) GHCConstants.h
+endif
+
# ---------------------------------------------------------------------------
# boot setup:
#
@@ -175,6 +179,11 @@ CLEAN_FILES += mkGHCConstants$(exeext) GHCConstants.h
override datadir:=$(libdir)/include
INSTALL_DATAS += $(H_FILES) $(H_CONFIG) $(H_PLATFORM)
+binary-dist:
+ $(INSTALL_DIR) $(BIN_DIST_DIR)/includes
+ $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/includes/
+ $(INSTALL_DATA) $(INSTALL_DATAS) $(BIN_DIST_DIR)/includes/
+
#
# `make clean' settings:
#