| 1 | build: |
| 2 | cargo build --release |
| 3 | |
| 4 | install: build |
| 5 | cp target/release/oxwm ~/.local/bin/oxwm |
| 6 | chmod +x ~/.local/bin/oxwm |
| 7 | @echo "✓ oxwm installed to ~/.local/bin/oxwm" |
| 8 | @echo " Run 'oxwm --init' to set up your config" |
| 9 | |
| 10 | uninstall: |
| 11 | rm -f ~/.local/bin/oxwm |
| 12 | @echo "✓ oxwm uninstalled" |
| 13 | @echo " Your config at ~/.config/oxwm is preserved" |
| 14 | |
| 15 | clean: |
| 16 | cargo clean |
| 17 | |
| 18 | test-clean: |
| 19 | pkill Xephyr || true |
| 20 | rm -rf ~/.config/oxwm |
| 21 | Xephyr -screen 1280x800 :1 & sleep 1 |
| 22 | DISPLAY=:1 cargo run --release |
| 23 | |
| 24 | test: |
| 25 | pkill Xephyr || true |
| 26 | rm -f ~/.config/oxwm/oxwm-user |
| 27 | Xephyr -screen 1280x800 :1 & sleep 1 |
| 28 | DISPLAY=:1 cargo run --release |
| 29 | |
| 30 | test-user: |
| 31 | pkill Xephyr || true |
| 32 | cargo run --release -- --recompile |
| 33 | Xephyr -screen 1280x800 :1 & sleep 1 |
| 34 | DISPLAY=:1 ~/.config/oxwm/oxwm-user |
| 35 | |
| 36 | init: |
| 37 | cargo run -- --init |
| 38 | |
| 39 | recompile: |
| 40 | cargo run -- --recompile |
| 41 | |
| 42 | edit: |
| 43 | $EDITOR ~/.config/oxwm/config.rs |
| 44 | |
| 45 | check: |
| 46 | cargo clippy -- -W clippy::all |
| 47 | cargo fmt -- --check |
| 48 | |
| 49 | fmt: |
| 50 | cargo fmt |
| 51 | |
| 52 | pre-commit: fmt check build |
| 53 | @echo "✓ All checks passed!" |