mods = $(wildcard *.mod) results = $(patsubst %.mod,%.result,$(mods)) all: $(results) %.result: %.mod @echo Resolviendo $^... @glpsol --model $^ --bounds $^.bounds > $@ @echo >> $@ @echo ------------------------------------------------------------------------ >> $@ @echo >> $@ @cat $^.bounds >> $@ @$(RM) $^.bounds clean: @echo Limpiando... @rm -fv *.result .PHONY: clean