Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[lazy-k] Generate lazy.pbc and use it for testing

git-svn-id: http://svn.perl.org/parrot/trunk@35989 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
commit c82620f0ab250325d811be70eb96a4e885e25e4d 1 parent a68f9ac
bernhard authored
Showing with 25 additions and 19 deletions.
  1. +23 −17 config/makefiles/root.in
  2. +1 −1  t/calc.t
  3. +1 −1  t/cat.t
View
40 config/makefiles/root.in
@@ -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
View
2  t/calc.t
@@ -32,7 +32,7 @@ use File::Spec();
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.
View
2  t/cat.t
@@ -32,7 +32,7 @@ use File::Spec();
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.
Please sign in to comment.
Something went wrong with that request. Please try again.