diff --git a/.gitignore b/.gitignore index a2227a5..133fcbe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ *.pir -Makefile test_wiki.sh wiki.sh index_data diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..c81e4c0 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +PERL6=perl6 + +SOURCES=lib/November/CGI.pm lib/Text/Markup/Wiki/Minimal.pm \ + lib/Text/Markup/Wiki/MediaWiki.pm lib/Digest.pm \ + lib/November/Storage.pm lib/November/Storage/File.pm lib/November/Tags.pm \ + lib/November/URI.pm lib/November/URI/Grammar.pm lib/Dispatcher.pm \ + lib/Dispatcher/Rule.pm lib/November/Session.pm lib/November/Utils.pm \ + lib/November/Config.pm lib/Test/InputOutput.pm lib/Test/CGI.pm \ + lib/November/Cache.pm lib/November.pm + +PIRS=$(SOURCES:.pm=.pir) + +all: $(PIRS) + +%.pir: %.pm + $(PERL6) --target=pir --output=$@ $< + +clean: + rm -f $(PIRS) + +tests: test + +test: all + prove -e '$(PERL6)' -r --nocolor t/