Makefile 356 B

123456789101112131415
  1. install-githooks:
  2. install githooks/* .git/hooks/
  3. test: compilecheck
  4. prove -mv t/*.t
  5. FILES2CHECK := $(shell find lib/ -name '*.pm')
  6. compilecheck:
  7. $(foreach FILE,$(FILES2CHECK),perl -Ilib -c $(FILE) &&) /bin/true
  8. tidy:
  9. $(foreach FILE,$(FILES2CHECK),perltidy -b $(FILE) &&) /bin/true
  10. perltidy -b t/*.t
  11. .PHONY: compilecheck test tidy install-githooks