- fix previous incomplete commit of mine
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 22 Mar 2007 16:14:42 +0000 (16:14 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 22 Mar 2007 16:14:42 +0000 (16:14 -0000)
package/mpfr/mpfr.mk

index f12fa91877a4349fbb136fa4d561156eca9f5238..01e78c7c9f34e9448fae470cf4a47e1b4978ae21 100644 (file)
@@ -38,12 +38,16 @@ $(DL_DIR)/$(MPFR_PATCH_FILE):
 libmpfr-source: $(DL_DIR)/$(MPFR_SOURCE) $(DL_DIR)/$(MPFR_PATCH_FILE)
 endif
 
+ifeq ($(MPFR_PATCH),)
 $(MPFR_DIR)/.unpacked: $(DL_DIR)/$(MPFR_SOURCE)
+else
+$(MPFR_DIR)/.unpacked: $(DL_DIR)/$(MPFR_SOURCE) $(DL_DIR)/$(MPFR_PATCH_FILE)
+endif
        $(MPFR_CAT) $(DL_DIR)/$(MPFR_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
        toolchain/patch-kernel.sh $(MPFR_DIR) package/mpfr/ \*.patch
        $(CONFIG_UPDATE) $(MPFR_DIR)
 ifneq ($(MPFR_PATCH),)
-       ( cd $(MPFR_DIR) ; patch -p1 < $(MPFR_PATCH_FILE) ; )
+       ( cd $(MPFR_DIR) ; patch -p1 < $(DL_DIR)/$(MPFR_PATCH_FILE) ; )
 endif
        touch $@