mirror of
https://github.com/vide/matedroid.git
synced 2026-01-20 00:03:17 +08:00
Add Makefile with targets for building, installing, and running debug builds on connected devices. Update DEVELOPMENT.md to document the available make targets. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
714 B
Makefile
31 lines
714 B
Makefile
.PHONY: build install run clean test help
|
|
|
|
# Default target
|
|
help:
|
|
@echo "Available targets:"
|
|
@echo " build - Build debug APK"
|
|
@echo " install - Build and install debug APK on connected device"
|
|
@echo " run - Build, install, and launch the app"
|
|
@echo " clean - Clean build artifacts"
|
|
@echo " test - Run unit tests"
|
|
|
|
# Build debug APK
|
|
build:
|
|
./gradlew assembleDebug
|
|
|
|
# Build and install debug APK on connected device
|
|
install: build
|
|
adb install -r app/build/outputs/apk/debug/app-debug.apk
|
|
|
|
# Build, install, and launch the app
|
|
run: install
|
|
adb shell am start -n com.matedroid/.MainActivity
|
|
|
|
# Clean build artifacts
|
|
clean:
|
|
./gradlew clean
|
|
|
|
# Run unit tests
|
|
test:
|
|
./gradlew testDebugUnitTest
|