Add Makefile with build, test, run, and devrun targets

Makefile wraps Gradle commands and adds emulator/device launch targets:
- run: builds, starts DC-1 emulator if needed, installs and launches
- devrun: builds, installs and launches on connected USB device
- Updated CLAUDE.md and DESIGN.md source trees

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-24 14:14:08 -07:00
parent 0b53023a25
commit 8f41c41589
3 changed files with 63 additions and 9 deletions

View File

@@ -9,13 +9,17 @@ eng-pad is an Android note-taking app built around notebooks with an EMR pen as
## Build Commands
```bash
./gradlew build # Compile everything
./gradlew test # Run unit tests
./gradlew lint # Run Android Lint
./gradlew installDebug # Install debug APK to connected device
make all # lint → test → build
make build # Compile debug + release APKs
make test # Run unit tests
make lint # Run Android Lint
make clean # Clean build artifacts
make run # Build, install, and launch on emulator (starts emulator if needed)
make devrun # Build, install, and launch on connected USB device
make run AVD=Medium_Phone_API_36.0 # Use a specific AVD
# Run a single test class:
./gradlew test --tests "net.metacircular.engpad.data.StrokeBlobTest"
make test-one CLASS=net.metacircular.engpad.data.StrokeBlobTest
```
## Architecture
@@ -62,9 +66,10 @@ eng-pad/
│ │ └── res/
│ └── test/ -- Unit tests
├── build.gradle.kts -- Root build config
├── settings.gradle.kts
├── settings.gradle.kts -- Project settings (foojay JDK resolver)
├── gradle.properties
├── gradle/libs.versions.toml -- Version catalog
├── Makefile -- Build targets (build, test, lint, run, devrun)
├── CLAUDE.md -- This file
├── README.md
├── DESIGN.md -- Technical design