Better makefile

This commit is contained in:
Álvaro González 2026-02-24 17:14:00 +01:00
parent f7a678d7dd
commit fe1f907759

View file

@ -1,15 +1,18 @@
all: clean-container build-builders build-linux-debug-container all: clean-container build-builders build-linux-debug-container
DB=~/.local/share/com.example.d4rt_formulas/d4rt_formulas/formulas.sqlite
build-container: build-container:
./flutterw --build-container ./flutterw --build-container
clean: clean:
flutter clean flutter clean
rm ~/.local/share/com.example.d4rt_formulas/d4rt_formulas/formulas.sqlite [ -f $(DB) ] && rm $(DB)
clean-container: build-container clean-container: build-container
./flutterw clean ./flutterw clean
rm .build-container-cache
pub-get-container: build-container pub-get-container: build-container
./flutterw pub get ./flutterw pub get
@ -35,11 +38,11 @@ run-linux-debug-container: pub-get-container
run-web-debug-container: pub-get-container run-web-debug-container: pub-get-container
./flutterw run --web-port $${WEB_PORT:-8081} -d web-server ./flutterw run --web-port $${WEB_PORT:-8081} -d web-server
run-linux-debug-native: build-linux-debug-container run-linux-debug-native:
./build/linux/x64/debug/bundle/d4rt_formulas flutter run -d linux
run-web-debug-native: build-web-debug-container run-web-debug-native:
cd build/web && python3 -m http.server $${WEB_PORT:-8081} flutter run --web-port $${WEB_PORT:-8081} -d web-server
ai: ai:
qwen --prompt-interactive --yolo "Read CLAUDE.md. Implement first task not already done in TODO.md" qwen --prompt-interactive --yolo "Read CLAUDE.md. Implement first task not already done in TODO.md"