@@ -8,9 +8,9 @@ XCODE_WORKSPACE = ios/$(IOS_PROJECT).xcworkspace
88XCODE_SCHEME = $(IOS_PROJECT )
99XCODE_DERIVEDDATA = ios/build
1010
11- .PHONY : install pod-install build-ios build-android run-ios run-android clean-ios clean-android clean help
11+ .PHONY : node- install pod-install ios build-ios android build-android run-ios run-android clean-ios clean-android clean help
1212
13- install :
13+ node- install :
1414 @echo " Installing Node dependencies..."
1515 @$(YARN ) install
1616 @echo " ✓ Node dependencies installed"
@@ -20,7 +20,9 @@ pod-install:
2020 @cd ios && pod install
2121 @echo " ✓ CocoaPods installed"
2222
23- build-ios : install pod-install
23+ ios : node-install pod-install build-ios
24+
25+ build-ios :
2426 @echo " Building iOS Simulator app..."
2527 @set -o pipefail && xcodebuild -workspace $(XCODE_WORKSPACE ) \
2628 -scheme $(XCODE_SCHEME ) \
@@ -34,7 +36,9 @@ build-ios: install pod-install
3436 $(if $(shell command -v xcbeautify 2>/dev/null) ,| xcbeautify,)
3537 @echo " ✓ iOS app built at $( XCODE_DERIVEDDATA) /Build/Products/Release-iphonesimulator/$( IOS_PROJECT) .app"
3638
37- build-android : install
39+ android : node-install build-android
40+
41+ build-android :
3842 @echo " Building Android Release APK..."
3943 @chmod +x $(GRADLEW )
4044 @cd android && ./gradlew assembleRelease --no-daemon
@@ -60,10 +64,12 @@ clean: clean-ios clean-android
6064
6165help :
6266 @echo " Available targets:"
63- @echo " make install - Install Node dependencies"
67+ @echo " make node- install - Install Node dependencies"
6468 @echo " make pod-install - Install CocoaPods dependencies"
65- @echo " make build-ios - Build iOS Simulator app"
66- @echo " make build-android - Build Android Release APK"
69+ @echo " make ios - Install deps + build iOS Simulator app"
70+ @echo " make build-ios - Build iOS Simulator app (deps must be installed)"
71+ @echo " make android - Install deps + build Android Release APK"
72+ @echo " make build-android - Build Android Release APK (deps must be installed)"
6773 @echo " make run-ios - Start iOS dev build via Expo"
6874 @echo " make run-android - Start Android dev build via Expo"
6975 @echo " make clean-ios - Clean iOS build artifacts"
0 commit comments