Browse files

[Makefile] added to version control

It assumes an installed 'perl6', as opposed to the old one.
  • Loading branch information...
1 parent 95134d4 commit c5fd6a474718a4e7a986db3216c7ea63ecd12387 @masak masak committed Feb 2, 2010
Showing with 24 additions and 1 deletion.
  1. +0 −1 .gitignore
  2. +24 −0 Makefile
View
1 .gitignore
@@ -1,5 +1,4 @@
*.pir
-Makefile
test_wiki.sh
wiki.sh
index_data
View
24 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/

0 comments on commit c5fd6a4

Please sign in to comment.