瀏覽代碼

Tidy rule

Andy Baugh 3 月之前
父節點
當前提交
099fb7b80f
共有 1 個文件被更改,包括 5 次插入1 次删除
  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