Permalink
Browse files

Stole Makefile from November

  • Loading branch information...
1 parent 34572c4 commit fe189dc3393dc4a59f262a07fb8e4bd3d74310c7 @bacek committed Dec 7, 2008
Showing with 19 additions and 8 deletions.
  1. +19 −8 Makefile
View
@@ -1,14 +1,25 @@
-all: XQuery/Parser/Grammar.pir TestUtil.pir Test.pir
+PARROT_DIR=/home/bacek/src/parrot
+RAKUDO=$(PARROT_DIR)/parrot $(PARROT_DIR)/languages/perl6/perl6.pbc
-XQuery/Parser/Grammar.pir: XQuery/Parser/Grammar.pm
- perl6 --target=pir --output=XQuery/Parser/Grammar.pir XQuery/Parser/Grammar.pm
+SOURCES= \
+ XQuery/Parser/Grammar.pm \
+ XQuery/Parser.pm \
+ XQuery/Core/Nodes.pm \
+ XQuery/Core.pm \
+ XQuery.pm \
+ TestUtil.pm \
+ Test.pm
-Test.pir: Test.pm
- perl6 --target=pir --output=Test.pir Test.pm
+PIRS=$(SOURCES:.pm=.pir)
-TestUtil.pir: TestUtil.pm
- perl6 --target=pir --output=TestUtil.pir TestUtil.pm
+all: $(PIRS)
+
+%.pir: %.pm
+ $(PARROT_DIR)/parrot $(PARROT_DIR)/languages/perl6/perl6.pbc --target=pir $< > $@
+
+clean:
+ rm -f $(PIRS)
test: all
- prove -e perl6 --timer -r t
+ prove -e $(PARROT_DIR)/languages/perl6/perl6 -r --timer t/

0 comments on commit fe189dc

Please sign in to comment.