Browse Source

Tidy rule

Andy Baugh 3 tháng trước cách đây
mục cha
commit
099fb7b80f
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      Makefile

+ 5 - 1
Makefile

@@ -5,4 +5,8 @@ FILES2CHECK := $(shell find lib/ -name '*.pm')
 compilecheck:
 	$(foreach FILE,$(FILES2CHECK),perl -Ilib -c $(FILE) &&) /bin/true
 
-.PHONY: compilecheck test
+tidy:
+	$(foreach FILE,$(FILES2CHECK),perltidy -b $(FILE) &&) /bin/true
+	perltidy -b t/*.t
+
+.PHONY: compilecheck test tidy