SRCS := $(wildcard *.pipa) BINS := $(patsubst %.pipa, %.bin, $(SRCS)) .PHONY: all all: $(BINS) %.bin: %.pipa ../pipa --out $@ $< clean: $(RM) $(BINS)