2024-12-03 02:42:15 +00:00
|
|
|
.PHONY: help
|
|
|
|
|
|
|
|
help: ## Print the help message
|
|
|
|
@awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \
|
|
|
|
sort | \
|
|
|
|
column -s ':' -t
|
|
|
|
|
|
|
|
map.txt: map.ge ## Making map.txt
|
2024-12-03 19:03:52 +00:00
|
|
|
grep -v '# unimportant' $< | graph-easy --boxart > $@
|
2024-12-03 02:42:15 +00:00
|
|
|
cat $@
|
2024-12-03 19:03:52 +00:00
|
|
|
|
2024-12-03 02:42:15 +00:00
|
|
|
full_map.txt: map.ge ## Generating full_map.txt with graph-easy
|
2024-12-02 15:00:00 +00:00
|
|
|
graph-easy --boxart < $< > $@
|
2024-12-03 02:42:15 +00:00
|
|
|
cat $@
|
2024-12-05 14:29:34 +00:00
|
|
|
|
|
|
|
########## Man Pages ##########
|
|
|
|
|
|
|
|
mandir = $(HOME)/.local/man/man6
|
|
|
|
|
|
|
|
kralizec_docs != grep -rl "^section:" kralizec
|
|
|
|
kralmans = $(kralizec_docs:kralizec/%/README.md=$(mandir)/%.6)
|
|
|
|
|
|
|
|
krov_docs != grep -rl "^section:" krov
|
|
|
|
krovmans = $(krov_docs:krov/%/README.md=$(mandir)/%.6)
|
|
|
|
|
|
|
|
$(mandir)/%.6: kralizec/%/README.md
|
|
|
|
lowdown -stman $< > $@
|
|
|
|
|
|
|
|
$(mandir)/%.6: krov/%/README.md
|
|
|
|
lowdown -stman $< > $@
|
|
|
|
|
|
|
|
$(mandir):
|
|
|
|
mkdir -p $@
|
|
|
|
|
|
|
|
$(kralmans) $(krovmans) :| $(mandir)
|
|
|
|
|
|
|
|
.PHONY: pages
|
|
|
|
pages: $(kralmans) $(krovmans)
|
|
|
|
$(info $(kralmans))
|
|
|
|
@test ! $(command -v mandb) || mandb --user-db
|
2024-12-05 15:33:38 +00:00
|
|
|
$(info Open DMZ's man pages with 'man 6 <tab>')
|
2024-12-05 14:29:34 +00:00
|
|
|
|
|
|
|
##########
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) $(kralmans) $(krovmans)
|