[fortune] Rename bare fortune file with .txt extension; rewrite Makefile as a bmake style Makefile

This commit is contained in:
Eryn Wells 2026-01-30 09:57:56 -08:00
parent e188601053
commit 3669a7efc0
2 changed files with 9 additions and 10 deletions

View file

@ -1,16 +1,15 @@
# Makefile
# Eryn Wells <eryn@erynwells.me>
STRFILE=strfile
STRFILE != which strfile
DATFILES := eryn.dat
DATFILES=eryn.dat
.SUFFIXES : .dat .txt
.PHONY: all clean
.txt.dat :
$(STRFILE) $(.IMPSRC) $(.TARGET)
%.dat: %
$(STRFILE) $^ $@
all : $(DATFILES)
.PHONY: all
all: $(DATFILES)
.PHONY: clean
clean:
clean : .PHONY
rm -f $(DATFILES)