Skip to content

Commit 2328dc4

Browse files
committed
os specific make file target
1 parent 9b29717 commit 2328dc4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

makefiles/android-device.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ get-db:
5050
adb pull /data/data/$(android_package_name)/files/default.realm ../temp/
5151

5252
open-db: get-db
53+
ifeq ($(UNAME), Darwin)
5354
open ../temp/default.realm
55+
endif
5456

5557
log:
5658
adb logcat *:S ReactNative:V ReactNativeJS:V

makefiles/common.mk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@ ip:=$(if $(ip),$(ip),$(shell ifconfig | grep -A 2 'wlp' | grep 'inet ' | tail -1
1818

1919
define _setup_hosts
2020
sed 's/SERVER_URL_VAR/$(ip)/g' config/env/$1.json.template > config/env/dev.json
21-
endef
21+
endef
22+
23+
UNAME := $(shell uname)
24+
25+
check-uname:
26+
@echo $(UNAME)

0 commit comments

Comments
 (0)