-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (16 loc) · 927 Bytes
/
Copy pathMakefile
File metadata and controls
24 lines (16 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# predatorctl — development shortcuts. `make help` lists the targets.
.PHONY: help run test install uninstall linuwu clean
help: ## List available commands
@grep -E '^[a-z-]+:.*##' $(MAKEFILE_LIST) | awk -F':.*## ' '{printf " make %-10s %s\n", $$1, $$2}'
run: ## Run the app from source (dev; every write asks for a password)
python3 src/main.py
test: ## Run the test suite (no hardware, no GTK)
python3 -m unittest discover tests -v
install: ## Install system-wide (needs root: sudo make install [AFTER_UNIT=power-profiles-daemon.service])
./install.sh $(if $(AFTER_UNIT),--after=$(AFTER_UNIT))
uninstall: ## Remove everything install created (sudo make uninstall)
./uninstall.sh
linuwu: ## Install the linuwu_sense module via DKMS (optional; sudo make linuwu [LINUWU_SRC=dir])
./install-linuwu-dkms.sh $(LINUWU_SRC)
clean: ## Remove Python caches
find . -type d -name "__pycache__" -exec rm -rf {} +