mirror of
https://codeberg.org/kyonshi/ttrpg-fortunes.git
synced 2026-01-02 01:53:46 +01:00
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:
24
Makefile
Normal file
24
Makefile
Normal 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))
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# ttrpg-fortunes
|
# ttrpg-fortunes
|
||||||
|
|
||||||
A collection of fortunes regarding tabletop rpgs and adjacent topics
|
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.
|
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.
|
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
|
||||||
Reference in New Issue
Block a user