diff options
author | Ian Lynagh <igloo@earth.li> | 2007-11-24 18:52:40 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2007-11-24 18:52:40 +0000 |
commit | 730388fc60655b63a9491a1cafa236fea097516c (patch) | |
tree | abb1b28762a8dbae847ce659cb127006471a7a0f | |
parent | 14a8072ba80f151e09c855342f48fc9cd4501d1e (diff) | |
download | haskell-730388fc60655b63a9491a1cafa236fea097516c.tar.gz |
Install gmp from bindists; fixes trac #1848
-rw-r--r-- | distrib/Makefile | 1 | ||||
-rw-r--r-- | gmp/Makefile | 29 |
2 files changed, 14 insertions, 16 deletions
diff --git a/distrib/Makefile b/distrib/Makefile index 64863e2fba..a91557e6ee 100644 --- a/distrib/Makefile +++ b/distrib/Makefile @@ -24,6 +24,7 @@ install:: $(MAKE) -C rts install DOING_BIN_DIST=YES $(MAKE) -C libraries install DOING_BIN_DIST=YES $(MAKE) -C compiler install DOING_BIN_DIST=YES + $(MAKE) -C gmp install DOING_BIN_DIST=YES $(MAKE) -C docs install-docs DOING_BIN_DIST=YES $(MAKE) -C libraries/Cabal/doc install-docs DOING_BIN_DIST=YES $(INSTALL_DATA) $(INSTALL_OPTS) extra-gcc-opts $(libdir) diff --git a/gmp/Makefile b/gmp/Makefile index 13faf9f170..b3b8104d8a 100644 --- a/gmp/Makefile +++ b/gmp/Makefile @@ -45,19 +45,19 @@ BUILD_SHARED=no endif boot :: stamp.gmp.static -all :: gmp.h libgmp.a -install :: gmp.h libgmp.a INSTALL_HEADERS += gmp.h INSTALL_LIBS += libgmp.a ifeq "$(BUILD_SHARED)" "yes" boot :: stamp.gmp.shared -all :: libgmp-3.dll libgmp.dll.a -install :: libgmp-3.dll libgmp.dll.a INSTALL_LIBS += libgmp.dll.a INSTALL_PROGS += libgmp-3.dll endif +ifneq "$(DOING_BIN_DIST)" "YES" +install all :: $(INSTALL_HEADERS) $(INSTALL_LIBS) $(INSTALL_PROGS) +endif + stamp.gmp.static: $(RM) -rf $(GMP_DIR) gmpbuild $(TAR) -zxf $(GMP_TARBALL) @@ -116,22 +116,19 @@ endif include $(TOP)/mk/target.mk binary-dist: - @: -ifneq "$(HaveLibGmp)" "YES" -ifneq "$(HaveFrameworkGMP)" "YES" $(INSTALL_DIR) $(BIN_DIST_DIR)/gmp - touch $(BIN_DIST_DIR)/gmp/$(GMP_TARBALL) $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/gmp/ -ifneq "$(INSTALL_PROGS)" "" +ifneq "$(HaveLibGmp)" "YES" + ifneq "$(HaveFrameworkGMP)" "YES" + ifneq "$(INSTALL_PROGS)" "" $(INSTALL_DATA) $(INSTALL_PROGS) $(BIN_DIST_DIR)/gmp/ -endif -ifneq "$(INSTALL_LIBS)" "" + endif + ifneq "$(INSTALL_LIBS)" "" $(INSTALL_DATA) $(INSTALL_LIBS) $(BIN_DIST_DIR)/gmp/ -endif -ifneq "$(INSTALL_HEADERS)" "" + endif + ifneq "$(INSTALL_HEADERS)" "" $(INSTALL_HEADER) $(INSTALL_HEADERS) $(BIN_DIST_DIR)/gmp/ -endif - -endif + endif + endif endif |