Makefile 771 B

12345678910111213141516171819202122
  1. all: install-githooks depend
  2. install-githooks:
  3. install githooks/* .git/hooks/
  4. test: depend testdepend compilecheck
  5. prove -mv t/*.t
  6. FILES2CHECK := $(shell find lib/ -name '*.pm')
  7. compilecheck:
  8. $(foreach FILE,$(FILES2CHECK),perl -Ilib -c $(FILE) &&) /bin/true
  9. tidy:
  10. $(foreach FILE,$(FILES2CHECK),perltidy -b $(FILE) &&) /bin/true
  11. perltidy -b t/*.t
  12. depend:
  13. sudo cpanm Net::OpenSSH Net::SFTP::Foreign File::Slurper Data::UUID Expect File::HomeDir File::Temp IO::Pty IO::Socket::INET IO::Socket::INET6 IO::Stty List::Util Net::DNS::Resolver Net::IP Time::HiRes Term::ANSIColor
  14. testdepend:
  15. sudo cpanm Test2::V0 Test2::Tools::Explain Test2::Tools::Subtest Test2::Plugin::NoWarnings Test::MockModule
  16. .PHONY: compilecheck test tidy install-githooks depend testdepend