-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (23 loc) · 789 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Varables
SUDO = sudo
LUA = lua
# Dependencies & scripts
run: ## get vndb quotes
uv run format.py
run-lua: ## get vndb quotes
$(LUA) format.lua
clean: ## clean up outputs
-rm output/vndb*
install: output/vndb ## install vndb fortunes
@echo "Installing VNDB quotes to fortunes database..."
$(SUDO) install -pm644 ./output/vndb* /usr/share/fortunes/
test: ## get random VNDB quote
fortune vndb
uninstall: ## remove vndb quotes from fortunes
@echo "Removing VNDB quotes from fortunes database..."
$(SUDO) rm /usr/share/fortunes/vndb /usr/share/fortunes/vndb.dat
help: ## show this help
@echo "Specify a command:"
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[0;36m%-12s\033[m %s\n", $$1, $$2}'
@echo ""
.PHONY: help