androot/Makefile

17 lines
807 B
Makefile

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
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