CONFIG := $(HOME)/.config/aman/config.json .PHONY: run doctor self-check install sync test check RUN_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) RUN_CONFIG := $(if $(RUN_ARGS),$(abspath $(firstword $(RUN_ARGS))),$(CONFIG)) ifneq ($(filter run,$(firstword $(MAKECMDGOALS))),) .PHONY: $(RUN_ARGS) $(RUN_ARGS): @: endif run: uv run aman run --config $(RUN_CONFIG) doctor: uv run aman doctor --config $(CONFIG) self-check: uv run aman self-check --config $(CONFIG) sync: uv sync test: python3 -m unittest discover -s tests -p 'test_*.py' check: python3 -m py_compile src/*.py $(MAKE) test install: uv pip install --user . cp systemd/aman.service $(HOME)/.config/systemd/user/aman.service systemctl --user daemon-reload systemctl --user enable --now aman