Process multiple files in a directory by Makefile.

SOURCES := $(wildcard *_conversion.txt)
TARGETS := $(patsubst %_conversion.txt, %_uniq.txt, $(SOURCES))

.PHONY: all
all: $(TARGETS)

%_uniq.txt: %_conversion.txt
>    command $< > $@

Process multiple files in a directory by Makefile…
Tagged on:     

Leave a Reply

Your email address will not be published. Required fields are marked *