Makefile 154 B

12345678
  1. EXAMPLES = $(foreach EXAMPLE, $(wildcard examples/*.js), $(EXAMPLE))
  2. .PHONY: test
  3. test: $(EXAMPLES)
  4. .PHONY: $(EXAMPLES)
  5. $(EXAMPLES): ; node $@ && echo