Ver Fonte

Foreach with explosion

Andy Baugh há 3 meses atrás
pai
commit
d5256cd593
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -1,8 +1,8 @@
 test: compilecheck
 	prove -mv t/*.t
 
-FILES2CHECK = $(shell find lib/ -name '*.pm')
+FILES2CHECK := $(shell find lib/ -name '*.pm')
 compilecheck:
-	$(foreach FILE,$(FILES2CHECK),perl -Ilib -c $(FILE);)
+	$(foreach FILE,$(FILES2CHECK),perl -Ilib -c $(FILE) &&) /bin/true
 
 .PHONY: compilecheck test