X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=gmp%2FMakefile;h=ab661d9f13c8fe0fed611ee44f021c6018e6e086;hb=21c9699eb5175355db4c44643a58b3c532238400;hp=13faf9f17075ca318c3857d1825b844ec139f001;hpb=ea56c4863d14e1ceaaa36ecf407f079ab675a231;p=ghc-hetmet.git diff --git a/gmp/Makefile b/gmp/Makefile index 13faf9f..ab661d9 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 +BINDIST_STAMPS = stamp.gmp.static 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 +BINDIST_STAMPS += stamp.gmp.shared INSTALL_LIBS += libgmp.dll.a INSTALL_PROGS += libgmp-3.dll endif +install all :: $(INSTALL_HEADERS) $(INSTALL_LIBS) $(INSTALL_PROGS) + stamp.gmp.static: $(RM) -rf $(GMP_DIR) gmpbuild $(TAR) -zxf $(GMP_TARBALL) @@ -116,22 +116,20 @@ 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" + $(INSTALL_DATA) $(BINDIST_STAMPS) $(BIN_DIST_DIR)/gmp/ + 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