androot/Makefile

18 lines
807 B
Makefile
Raw Permalink Normal View History

help:
@echo "make help - display tasks"
@echo " check - check androot scripts"
@echo " ensureexec - ensure all scripts are executable"
@echo " run - execute androot locally"
@echo " test - execute androot locally with diagnostic log output"
@echo " log - follow androot's log file"
check:
shellcheck *.sh
ensureexec:
chmod +x *.sh
run: ensureexec check
sudo ./androot.sh --local
test: ensureexec check
2023-11-08 19:47:37 +01:00
sudo env ALLOW_SHM=true DIAG=true ./androot.sh --local
log:
@PS4='';if [ -d "/tmp/androot" ]; then set -x; tail -f /tmp/androot/androot.log; elif [ -d "/data/tmp/androot" ]; then set -x; tail -f /data/tmp/androot/androot.log; else echo ":: Error: androot's log directory could not be determined (start androot first)"; exit 1; fi