NinjaGaiden
NinjaGaiden

Reputation: 3146

Makefile and wildcard targets

I have a directory with many files. I would like to run a command against these files (ie. md5sum). Instead of keep recomputing the checksum I would like to store the checksum. I would like to compute the checksums in a parallel manner (make -j)

Upvotes: 0

Views: 52

Answers (1)

MadScientist
MadScientist

Reputation: 100836

Something like:

md5sums: $(addsuffix .md5sum,$(wildcard *.foo))

%.md5sum: %
        md5sum $< > $@

That's about the best we can do with the limited description available.

Upvotes: 1

Related Questions