Skip to content

Commit

Permalink
[Makefile] added to version control
Browse files Browse the repository at this point in the history
It assumes an installed 'perl6', as opposed to the old one.
  • Loading branch information
Carl Masak committed Feb 2, 2010
1 parent 95134d4 commit c5fd6a4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
@@ -1,5 +1,4 @@
*.pir
Makefile
test_wiki.sh
wiki.sh
index_data
Expand Down
24 changes: 24 additions & 0 deletions 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.