develooper Front page | perl.cvs.parrot | Postings from January 2009

[svn:parrot] r35969 - in trunk: . languages/unlambda languages/unlambda/config/makefiles languages/unlambda/t

From:
bernhard
Date:
January 24, 2009 14:06
Subject:
[svn:parrot] r35969 - in trunk: . languages/unlambda languages/unlambda/config/makefiles languages/unlambda/t
Message ID:
20090124220607.1A6B3CB9AE@x12.develooper.com
Author: bernhard
Date: Sat Jan 24 14:06:06 2009
New Revision: 35969

Modified:
   trunk/MANIFEST.SKIP
   trunk/languages/unlambda/   (props changed)
   trunk/languages/unlambda/config/makefiles/root.in
   trunk/languages/unlambda/t/examples.t

Log:
[unlambda] build unl.pbc and use it for testing


Modified: trunk/MANIFEST.SKIP
==============================================================================
--- trunk/MANIFEST.SKIP	(original)
+++ trunk/MANIFEST.SKIP	Sat Jan 24 14:06:06 2009
@@ -1,6 +1,6 @@
 # ex: set ro:
 # $Id$
-# generated by tools/dev/mk_manifest_and_skip.pl Sat Jan 24 20:18:58 2009 UT
+# generated by tools/dev/mk_manifest_and_skip.pl Sat Jan 24 21:58:43 2009 UT
 #
 # This file should contain a transcript of the svn:ignore properties
 # of the directories in the Parrot subversion repository. (Needed for
@@ -1209,6 +1209,8 @@
 # generated from svn:ignore of 'languages/unlambda/'
 ^languages/unlambda/Makefile$
 ^languages/unlambda/Makefile/
+^languages/unlambda/unl\.pbc$
+^languages/unlambda/unl\.pbc/
 # generated from svn:ignore of 'languages/urm/'
 ^languages/urm/Makefile$
 ^languages/urm/Makefile/

Modified: trunk/languages/unlambda/config/makefiles/root.in
==============================================================================
--- trunk/languages/unlambda/config/makefiles/root.in	(original)
+++ trunk/languages/unlambda/config/makefiles/root.in	Sat Jan 24 14:06:06 2009
@@ -4,12 +4,12 @@
 # Makefile for languages/unlambda
 
 # configuration settings
-BUILD_DIR       = @build_dir@
+BUILD_DIR     = @build_dir@
 
 # Set up commands
-PERL            = @perl@
-RM_F            = @rm_f@
-RECONFIGURE     = $(PERL) @build_dir@/tools/dev/reconfigure.pl
+PERL          = @perl@
+RM_F          = @rm_f@
+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@
@@ -26,9 +26,9 @@
 	@echo ""
 	@echo "  test:              Run the test suite."
 	@echo ""
-	@echo "  clean:             Clean up temporary files."
+	@echo "  clean:             Clean up."
 	@echo ""
-	@echo "  realclean:         Clean up generated files."
+	@echo "  realclean:         Clean and remove Makefile."
 	@echo ""
 	@echo "  help:              Print this help message."
 
@@ -37,13 +37,14 @@
 	 $(PERL) Configure.pl
 
 # Compilation:
-build:
-	@echo "nothing to do"
+build: unl.pbc
 
-# cleaning up
+unl.pbc:
+	$(PARROT) -o unl.pbc unl.pir
 
+# cleaning up
 clean: 
-	@echo "nothing to do"
+	$(RM_F) unl.pbc
 
 realclean: clean
 	$(RM_F) Makefile

Modified: trunk/languages/unlambda/t/examples.t
==============================================================================
--- trunk/languages/unlambda/t/examples.t	(original)
+++ trunk/languages/unlambda/t/examples.t	Sat Jan 24 14:06:06 2009
@@ -37,7 +37,7 @@
                                      $PConfig{test_prog} );
 my $unlamba   = $parrot . q{ } . File::Spec->catfile( $FindBin::Bin,
                                                       File::Spec->updir(), 
-                                                      'unl.pir' );
+                                                      'unl.pbc' );
 my @test_cases = (
     [ 'newline.unl'  => "\n" ],
     [ 'h.unl'        => "h\n" ],



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About