I have some files in a folder source. I want to process them using program program and output them into folder target just by typing $ makeHow should I write a makefile for this? Directory tree:/    Makefile    program   /source      foo.x      bar.x      spam.x   /target      foo.y      bar.y      spam.y
How to write makefile for bulk processing?
make
Something like this:SOURCES := $(wildcard source/*)TARGETS := $(patsubst source/%.x, target/%.y, $(SOURCES))all: $(TARGETS)target/%.y: source/%.x    program -i $< -o $@