mirror of
https://codeberg.org/kyonshi/ttrpg-fortunes.git
synced 2026-01-02 01:53:46 +01:00
18 lines
355 B
Makefile
18 lines
355 B
Makefile
fortune_directory = /usr/share/fortune
|
|
|
|
dat_files = $(wildcard *.dat)
|
|
|
|
fortune_files = $(patsubst %.dat, %, $(dat_files))
|
|
fortune_files += $(dat_files)
|
|
|
|
targets = $(patsubst %, $(fortune_directory)/%, $(fortune_files))
|
|
|
|
$(targets): $(fortune_directory)/%: %
|
|
install -pm644 $< $@
|
|
|
|
.PHONY: install
|
|
install: $(targets)
|
|
|
|
clean:
|
|
$(RM) $(wildcard $(targets))
|