GNU make implicit rules for batch file processing
问题 I'd like to use GNU make to automate batch file processing, in my particular case I have a huge number of image files, I'd like to colorspace convert and reencode them to a custom file format. The file format encoder accepts only filenames on the command line, i.e. no stdio redirection. My file and directory structure is ./sourceimages/*.tif ./destimages/*.mie ./Makefile I wrote a peliminary Makefile with a pattern rule %.mie : %.tif tmpraw := $(shell mktemp --suffix=raw) convert $<