From f16f8df0d3a51392a4aee4dba8d0171aef3c0701 Mon Sep 17 00:00:00 2001 From: enahum Date: Fri, 8 Dec 2017 18:19:30 -0300 Subject: [PATCH] Run podinstall if the OS is mac (#1250) --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e7120e34e..31fd50539 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ ios_target := $(filter-out build-ios,$(MAKECMDGOALS)) android_target := $(filter-out build-android,$(MAKECMDGOALS)) POD := $(shell command -v pod 2> /dev/null) +OS := $(shell sh -c 'uname -s 2>/dev/null') .yarninstall: package.json @if ! [ $(shell command -v yarn 2> /dev/null) ]; then \ @@ -19,6 +20,7 @@ POD := $(shell command -v pod 2> /dev/null) @touch $@ .podinstall: +ifeq ($(OS), Darwin) ifdef POD @echo Getting Cocoapods dependencies; @cd ios && pod install; @@ -26,7 +28,7 @@ else @echo "Cocoapods is not installed https://cocoapods.org/" @exit 1 endif - +endif @touch $@ BASE_ASSETS = $(shell find assets/base -type d) $(shell find assets/base -type f -name '*')