Merge pull request 'make' (#1) from Andonome/ttrpg-fortunes:make into main

Reviewed-on: https://codeberg.org/kyonshi/ttrpg-fortunes/pulls/1
This commit is contained in:
kyonshi
2025-04-14 15:39:36 +00:00
2 changed files with 27 additions and 3 deletions

24
Makefile Normal file
View File

@@ -0,0 +1,24 @@
########## Variables ##########
fortune_directory = /usr/share/fortune
cookies = $(wildcard ttrpg*)
target_cookies = $(patsubst %, $(fortune_directory)/%, $(cookies))
target_dats = $(patsubst %, $(fortune_directory)/%.dat, $(cookies))
targets = $(target_cookies) $(target_dats)
########## Rules ##########
.PHONY: install
install: $(targets)
$(target_cookies): $(fortune_directory)/%: %
install -pm644 $< $@
$(target_dats): $(fortune_directory)/%.dat: %
strfile $< $@
uninstall:
$(RM) $(wildcard $(targets))

View File

@@ -1,7 +1,7 @@
# ttrpg-fortunes
A collection of fortunes regarding tabletop rpgs and adjacent topics
This is supposed to be a collection of adages, jokes, stories, DM Aid, and observations regarding tabletop roleplaying games.
A collection of fortunes regarding tabletop rpgs and adjacent topics.
This is supposed to be a collection of adages, jokes, stories, DM aids, and observations regarding tabletop roleplaying games.
It likely should be split into multiple sections when it gets large enough.
Collection of quotes happens on the wiki: https://campaignwiki.org/wiki/TTRPGFortuneFile/HomePage
Collection of quotes happens on the wiki: https://campaignwiki.org/wiki/TTRPGFortuneFile/HomePage