[fortune] Rename bare fortune file with .txt extension; rewrite Makefile as a bmake style Makefile
This commit is contained in:
parent
e188601053
commit
3669a7efc0
2 changed files with 9 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue