Run podinstall if the OS is mac (#1250)

This commit is contained in:
enahum 2017-12-08 18:19:30 -03:00 committed by GitHub
parent 7fdb0c4d27
commit f16f8df0d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 '*')