Created
January 14, 2013 12:35
-
-
Save anonymous/4529769 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From d493855756947d8e8cac7d7361d24f10471b2620 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Arne=20Skj=C3=A6rholt?= <arnsholt@gmail.com> | |
Date: Mon, 14 Jan 2013 13:33:23 +0100 | |
Subject: [PATCH] Enable Makefile to compile Java sources. | |
--- | |
Makefile | 13 +++++++++++-- | |
1 files changed, 11 insertions(+), 2 deletions(-) | |
diff --git a/Makefile b/Makefile | |
index f8f633f..3b24b10 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -1,4 +1,9 @@ | |
-all: jast helper.pbc | |
+JAVAS=src/org/perl6/nqp/jast2bc/*.java \ | |
+ src/org/perl6/nqp/runtime/*.java \ | |
+21 src/org/perl6/nqp/sixmodel/*.java \ | |
+ src/org/perl6/nqp/sixmodel/reprs/*.java | |
+ | |
+all: jast helper.pbc bin | |
jast: JASTNodes.pbc QASTJASTCompiler.pbc | |
@@ -14,5 +19,9 @@ helper.pbc: t/helper.nqp QASTJASTCompiler.pbc | |
nqp --target=pir --output=helper.pir t/helper.nqp | |
parrot -o helper.pbc helper.pir | |
-test: jast helper.pbc | |
+bin: $(JAVAS) | |
+ mkdir -p bin | |
+ javac -cp 3rdparty/bcel/bcel-5.2.jar -d bin $(JAVAS) | |
+ | |
+test: all | |
prove --exec=nqp t/*.t | |
-- | |
1.7.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment