Files
Krow-workspace/makefiles/mobile.mk
Achintha Isuru cf3c1c09ef chore: Add localization generation to mobile install
The mobile-install target now generates localization files after bootstrapping the workspace, ensuring localization is up to date during setup.
2026-01-22 11:11:56 -05:00

47 lines
1.6 KiB
Makefile

# --- Mobile App Development ---
.PHONY: mobile-install mobile-info mobile-client-dev-android mobile-staff-dev-android mobile-client-build mobile-staff-build
MOBILE_DIR := apps/mobile
# --- General ---
mobile-install: install-melos
@echo "--> Bootstrapping mobile workspace (Melos)..."
@cd $(MOBILE_DIR) && melos bootstrap
@echo "--> Generating localization files..."
@cd $(MOBILE_DIR) && melos run gen:l10n
mobile-info:
@echo "--> Fetching mobile command info..."
@cd $(MOBILE_DIR) && melos run info
# --- Client App ---
mobile-client-dev-android:
@echo "--> Running client app on Android..."
@cd $(MOBILE_DIR) && melos run start:client -- -d android
mobile-client-build:
@if [ -z "$(PLATFORM)" ]; then \
echo "ERROR: PLATFORM is required (e.g. make mobile-client-build PLATFORM=apk)"; exit 1; \
fi
@echo "--> Building client app for $(PLATFORM)..."
@cd $(MOBILE_DIR) && \
melos run gen:l10n --filter="core_localization" && \
melos run gen:build --filter="core_localization" && \
melos exec --scope="krowwithus_client" -- "flutter build $(PLATFORM)"
# --- Staff App ---
mobile-staff-dev-android:
@echo "--> Running staff app on Android..."
@cd $(MOBILE_DIR) && melos run start:staff -- -d android
mobile-staff-build:
@if [ -z "$(PLATFORM)" ]; then \
echo "ERROR: PLATFORM is required (e.g. make mobile-staff-build PLATFORM=apk)"; exit 1; \
fi
@echo "--> Building staff app for $(PLATFORM)..."
@cd $(MOBILE_DIR) && \
melos run gen:l10n --filter="core_localization" && \
melos run gen:build --filter="core_localization" && \
melos exec --scope="krowwithus_staff" -- "flutter build $(PLATFORM)"