d4t_formulas/Makefile

56 lines
1.3 KiB
Makefile
Raw Normal View History

2026-03-08 20:20:31 +00:00
all: build-container clean-container build-builders build-linux-debug-container
2026-01-10 12:59:55 +00:00
2026-03-21 12:54:24 +00:00
DATABASEFILE=~/.local/share/com.example.d4rt_formulas/d4rt_formulas/formulas.sqlite
FLUTTERW := $(shell if [ "$$CONTAINER_ID" = "" ]; then echo "./flutterw"; else echo "distrobox-host-exec $(CURDIR)/flutterw"; fi)
2026-02-24 16:14:00 +00:00
2026-01-28 12:35:17 +00:00
build-container:
2026-03-21 12:54:24 +00:00
$(FLUTTERW) --build-container
2026-02-18 10:25:14 +00:00
clean:
flutter clean
2026-03-21 12:54:24 +00:00
[ -f $(DATABASEFILE) ] && rm $(DATABASEFILE)
2026-02-18 10:25:14 +00:00
2026-03-08 20:20:31 +00:00
clean-container:
rm -r .build-container-cache
2026-03-21 12:54:24 +00:00
$(FLUTTERW) clean
2026-03-08 20:20:31 +00:00
pub-get-container:
2026-03-21 12:54:24 +00:00
$(FLUTTERW) pub get
2026-03-21 12:54:24 +00:00
test:
$(FLUTTERW) test
2026-03-08 20:20:31 +00:00
build-builders:
2026-03-21 12:54:24 +00:00
$(FLUTTERW) pub run build_runner build --delete-conflicting-outputs
2026-03-21 12:54:24 +00:00
build-android-release-container:
$(FLUTTERW) build apk --release
2026-03-21 12:54:24 +00:00
build-linux-debug-container:
$(FLUTTERW) build linux --debug
2026-03-21 12:54:24 +00:00
build-web-debug-container:
$(FLUTTERW) build web --debug
2026-03-21 12:54:24 +00:00
run-linux-debug-container:
$(FLUTTERW) run -d linux
2026-03-21 12:54:24 +00:00
run-web-debug-container:
$(FLUTTERW) run --web-port $${WEB_PORT:-8081} -d web-server
2026-02-24 16:14:00 +00:00
run-linux-debug-native:
flutter run -d linux
2026-01-28 12:35:17 +00:00
2026-02-24 16:14:00 +00:00
run-web-debug-native:
flutter run --web-port $${WEB_PORT:-8081} -d web-server
2026-02-09 16:10:47 +00:00
ai:
qwen --prompt-interactive --yolo "Read CLAUDE.md. Implement first task not already done in TODO.md"
run-emulator:
flutter emulators --launch Medium_Phone
2026-03-21 12:54:24 +00:00
flutter run -d emulator-5554