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

[svn:parrot] r35414 - in trunk/languages/pipp: . config/makefiles

From:
bernhard
Date:
January 11, 2009 06:17
Subject:
[svn:parrot] r35414 - in trunk/languages/pipp: . config/makefiles
Message ID:
20090111141707.4EBB7CB9F9@x12.develooper.com
Author: bernhard
Date: Sun Jan 11 06:17:06 2009
New Revision: 35414

Modified:
   trunk/languages/pipp/Configure.pl
   trunk/languages/pipp/config/makefiles/root.in

Log:
[Pipp] Grab Configure.pl from Pheme and use it in Makefile.


Modified: trunk/languages/pipp/Configure.pl
==============================================================================
--- trunk/languages/pipp/Configure.pl	(original)
+++ trunk/languages/pipp/Configure.pl	Sun Jan 11 06:17:06 2009
@@ -1,31 +1,17 @@
 # $Id$
+# Copyright (C) 2009, The Perl Foundation.
 
-# Copyright (C) 2006-2007, The Perl Foundation.
-
-# Configuration script for Pipp.
-
-# RT#31633: need to steal from gen::languages and tools/dev/reconfigure.pl
-#           in order to make this work
-
-package main;
-
-# pragmata
 use strict;
 use warnings;
 use 5.008;
-use FindBin;
-use lib "$FindBin::Bin/../../lib";
 
-# Parrot specific Perl modules
-use Parrot::Configure::Step  ();
+my $build_dir = '../..';
+my $cmd = qq{$^X -Ilib tools/dev/reconfigure.pl --step=gen::languages --languages=pipp};
 
-# RT#31633: This is too simplistic
-# Parrot::Configure::Step::genfile( 'config/makefiles/root.in' => 'Makefile' );
+print "Running '$cmd' in $build_dir\n";
 
-print <<'END_TEXT';
-Hi,
-I'm Configure.pl. Eventually I'll generate Makefile.
-END_TEXT
+chdir $build_dir;
+`$cmd`
 
 # Local Variables:
 #   mode: cperl

Modified: trunk/languages/pipp/config/makefiles/root.in
==============================================================================
--- trunk/languages/pipp/config/makefiles/root.in	(original)
+++ trunk/languages/pipp/config/makefiles/root.in	Sun Jan 11 06:17:06 2009
@@ -16,7 +16,6 @@
 PARROT        = $(BUILD_DIR)/parrot@exe@
 PERL          = @perl@
 RM_F          = @rm_f@
-RECONFIGURE   = $(PERL) $(BUILD_DIR)/tools/dev/reconfigure.pl
 PMCBUILD      = $(PERL) @build_dir@/tools/build/dynpmc.pl
 NQP           = $(BUILD_DIR)/compilers/nqp/nqp.pbc
 PCT           = $(BUILD_DIR)/runtime/parrot/library/PCT.pbc
@@ -148,7 +147,7 @@
 
 # regenerate the Makefile
 Makefile: config/makefiles/root.in
-	cd $(BUILD_DIR) && $(RECONFIGURE) --step=gen::languages --languages=pipp
+	$(PERL) Configure.pl
 
 build:           build-common
 



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