EXAMPLES = $(foreach EXAMPLE, $(wildcard examples/*.js), $(EXAMPLE)) .PHONY: testtest: $(EXAMPLES) .PHONY: $(EXAMPLES)$(EXAMPLES): ; node $@ && echo