all: $(patsubst %.txt,%.txt.dat,$(wildcard *.txt)) %.txt.dat: %.txt strfile $< $@ .PHONY: all