Author: bernhard
Date: Sun Jan 25 02:52:42 2009
New Revision: 35989
Modified:
trunk/MANIFEST.SKIP
trunk/languages/lazy-k/ (props changed)
trunk/languages/lazy-k/config/makefiles/root.in
trunk/languages/lazy-k/t/calc.t
trunk/languages/lazy-k/t/cat.t
Log:
[lazy-k] Generate lazy.pbc and use it for testing
Modified: trunk/MANIFEST.SKIP
==============================================================================
--- trunk/MANIFEST.SKIP (original)
+++ trunk/MANIFEST.SKIP Sun Jan 25 02:52:42 2009
@@ -1,6 +1,6 @@
# ex: set ro:
# $Id$
-# generated by tools/dev/mk_manifest_and_skip.pl Sat Jan 24 21:58:43 2009 UT
+# generated by tools/dev/mk_manifest_and_skip.pl Sun Jan 25 10:49:17 2009 UT
#
# This file should contain a transcript of the svn:ignore properties
# of the directories in the Parrot subversion repository. (Needed for
@@ -802,6 +802,8 @@
# generated from svn:ignore of 'languages/lazy-k/'
^languages/lazy-k/Makefile$
^languages/lazy-k/Makefile/
+^languages/lazy-k/lazy\.pbc$
+^languages/lazy-k/lazy\.pbc/
# generated from svn:ignore of 'languages/lisp/'
^languages/lisp/Makefile$
^languages/lisp/Makefile/
Modified: trunk/languages/lazy-k/config/makefiles/root.in
==============================================================================
--- trunk/languages/lazy-k/config/makefiles/root.in (original)
+++ trunk/languages/lazy-k/config/makefiles/root.in Sun Jan 25 02:52:42 2009
@@ -2,46 +2,52 @@
# Makefile for languages/lazy-k
-# Setup of some commands
-PARROT = @build_dir@/parrot@exe@
+# configuration settings
+BUILD_DIR = @build_dir@
+
+# Set up commands
PERL = @perl@
RM_F = @rm_f@
-RECONFIGURE = $(PERL) @build_dir@/tools/dev/reconfigure.pl
+PARROT = $(BUILD_DIR)/parrot@exe@
#CONDITIONED_LINE(darwin):
#CONDITIONED_LINE(darwin):# MACOSX_DEPLOYMENT_TARGET must be defined for OS X compilation/linking
#CONDITIONED_LINE(darwin):export MACOSX_DEPLOYMENT_TARGET := @osx_version@
-# set up location
-BUILD_DIR = @build_dir@
-
-default: all
-all: build
+# The default target
+default: build
help :
@echo ""
@echo "Following targets are available for the user:"
@echo ""
- @echo " build: Nothing to do"
- @echo " This is the default."
+ @echo " build: Build lazy.pbc."
+ @echo " This is the default target."
@echo ""
- @echo " test: run the test suite,"
+ @echo " test: Run the test suite."
@echo ""
- @echo " clean: clean up"
+ @echo " clean: Clean up."
@echo ""
- @echo " realclean: clean up and remove Makefile"
+ @echo " realclean: Clean and remove Makefile."
@echo ""
- @echo " help: print this help message"
+ @echo " help: Print this help message."
# regenerate the Makefile
Makefile: config/makefiles/root.in
$(PERL) Configure.pl
-build:
+# Compilation:
+build: lazy.pbc
-test: build
- cd .. && $(PERL) t/harness --languages=lazy-k
+lazy.pbc:
+ $(PARROT) -o lazy.pbc lazy.pir
+# cleaning up
clean:
+ $(RM_F) lazy.pbc
realclean: clean
$(RM_F) Makefile
+
+# testing
+test: build
+ cd .. && $(PERL) t/harness --languages=lazy-k
Modified: trunk/languages/lazy-k/t/calc.t
==============================================================================
--- trunk/languages/lazy-k/t/calc.t (original)
+++ trunk/languages/lazy-k/t/calc.t Sun Jan 25 02:52:42 2009
@@ -32,7 +32,7 @@
my $is_win32 = $^O eq 'MSWin32';
my $parrot = File::Spec->catfile( File::Spec->updir(), $PConfig{test_prog} );
-my $lazy_k = $parrot . q{ } . File::Spec->catfile( 'lazy-k', 'lazy.pir' );
+my $lazy_k = $parrot . q{ } . File::Spec->catfile( 'lazy-k', 'lazy.pbc' );
my $source_fn = File::Spec->catfile( 'lazy-k', 'calc.lazy' );
# XXX This does not look portable.
Modified: trunk/languages/lazy-k/t/cat.t
==============================================================================
--- trunk/languages/lazy-k/t/cat.t (original)
+++ trunk/languages/lazy-k/t/cat.t Sun Jan 25 02:52:42 2009
@@ -32,7 +32,7 @@
my $is_win32 = $^O eq 'MSWin32';
my $parrot = File::Spec->catfile( File::Spec->updir(), $PConfig{test_prog} );
-my $lazy_k = $parrot . q{ } . File::Spec->catfile( 'lazy-k', 'lazy.pir' );
+my $lazy_k = $parrot . q{ } . File::Spec->catfile( 'lazy-k', 'lazy.pbc' );
my $source_fn = File::Spec->catfile( 'lazy-k', 'cat.lazy' );
# XXX This does not look portable.