al is a an activity logger for linux.

This commit is contained in:
2026-04-11 22:26:58 +01:00
commit 92231f823e
3 changed files with 319 additions and 0 deletions

22
Makefile Normal file
View File

@@ -0,0 +1,22 @@
compile:
gcc -o al al.c -lm
install:
# If root, install to /usr/bin/
if [ "$$(id -u)" -eq 0 ]; then \
cp al /usr/bin/; \
echo "Installed to /usr/bin/"; \
else \
cp al ${HOME}/.local/bin/; \
echo "Installed to ${HOME}/.local/bin/"; \
fi
uninstall:
# If root, remove from /usr/bin/
if [ "$$(id -u)" -eq 0 ]; then \
rm -f /usr/bin/al; \
echo "Removed from /usr/bin/"; \
else \
rm -f ${HOME}/.local/bin/al; \
echo "Removed from ${HOME}/.local/bin/"; \
fi
clean:
rm -f al