]> git.saurik.com Git - cycript.git/blobdiff - apple.mk
Avoid error caused by passing -pthread to libtool.
[cycript.git] / apple.mk
index 2233aed1ff3135bc75254a3818df2e6f9b6c4f62..215f4d5ad886a118cbf5d3a9e502634747e7753b 100644 (file)
--- a/apple.mk
+++ b/apple.mk
@@ -17,6 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 # }}}
 
+.SECONDARY:
 .DELETE_ON_ERROR:
 SHELL := /bin/bash
 
@@ -82,7 +83,7 @@ clean:
 define build_any
 .PHONY: build-$(1)-$(2)
 build-$(1)-$(2):
-       $(MAKE) -C build.$(1)-$(2)
+       $$(MAKE) -C build.$(1)-$(2)
 build.$(1)-$(2)/.libs/libcycript.a: build-$(1)-$(2)
        @
 endef