Process multiple files in a directory by Makefile…

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 $< > $@

Comments

Leave a Reply

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