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

[svn:parrot] r35403 - trunk/config/gen/makefiles

From:
fperrad
Date:
January 11, 2009 02:43
Subject:
[svn:parrot] r35403 - trunk/config/gen/makefiles
Message ID:
20090111104252.9D2ACCB9F9@x12.develooper.com
Author: fperrad
Date: Sun Jan 11 02:42:49 2009
New Revision: 35403

Modified:
   trunk/config/gen/makefiles/dynoplibs.in
   trunk/config/gen/makefiles/dynpmc.in
   trunk/config/gen/makefiles/pge.in

Log:
[win32]
- fix targets using cd
the portable idiom is :
   cd $(DIR) && do_something

Modified: trunk/config/gen/makefiles/dynoplibs.in
==============================================================================
--- trunk/config/gen/makefiles/dynoplibs.in	(original)
+++ trunk/config/gen/makefiles/dynoplibs.in	Sun Jan 11 02:42:49 2009
@@ -1,10 +1,10 @@
 # $Id$
 
-PERL = @perl@
-RM_F = @rm_f@
-LOAD_EXT = @load_ext@
+PERL        = @perl@
+RM_F        = @rm_f@
+LOAD_EXT    = @load_ext@
 RUNTIME_DIR = @build_dir@/runtime/parrot/dynext
-O = @o@
+O           = @o@
 
 # add your dynamic op libraries here
 #
@@ -21,7 +21,7 @@
 	@$(BUILD) copy --destination=$(RUNTIME_DIR) $(OPLIBS)
 
 test : all
-	 cd ../.. ; perl -Ilib t/harness t/dynoplibs/*.t
+	 cd ../.. && $(PERL) -Ilib t/harness t/dynoplibs/*.t
 
 testclean :
 	 $(RM_F) "../../t/dynoplibs/*.pir" "../../t/dynoplibs/*.pbc"

Modified: trunk/config/gen/makefiles/dynpmc.in
==============================================================================
--- trunk/config/gen/makefiles/dynpmc.in	(original)
+++ trunk/config/gen/makefiles/dynpmc.in	Sun Jan 11 02:42:49 2009
@@ -24,7 +24,7 @@
 #IF(has_crypto):  sha1 \
 #IF(has_crypto):  sha256 \
 #IF(has_crypto):  sha512 \
-  subproxy 
+  subproxy
 
 BUILD = $(PERL) @build_dir@/tools/build/dynpmc.pl
 
@@ -46,7 +46,7 @@
 	@$(BUILD) copy --destination=$(RUNTIME_DIR) $(PMCS)
 
 test : all
-	cd ../.. ; perl -Ilib t/harness t/dynpmc/*.t
+	cd ../.. && $(PERL) -Ilib t/harness t/dynpmc/*.t
 
 testclean :
 	$(RM_F) "../../t/dynpmc/*.pir" "../../t/dynpmc/*.pbc"

Modified: trunk/config/gen/makefiles/pge.in
==============================================================================
--- trunk/config/gen/makefiles/pge.in	(original)
+++ trunk/config/gen/makefiles/pge.in	Sun Jan 11 02:42:49 2009
@@ -1,12 +1,12 @@
 # $Id$
 
 # Setup some commands
-LN_S     = @lns@
 PERL     = @perl@
 RM_F     = @rm_f@
+CP       = @cp@
 PARROT   = ../../parrot@exe@
+
 TOOL_DIR = ../..
-CP       = @cp@
 
 # Where to put things
 PARROT_LIBRARY    = ../../runtime/parrot/library
@@ -14,7 +14,8 @@
 # the default target
 all: $(PARROT_LIBRARY)/PGE.pbc
 
-SOURCES = PGE.pir \
+SOURCES = \
+  PGE.pir \
   PGE/Exp.pir \
   PGE/Match.pir \
   PGE/Regex.pir \
@@ -55,21 +56,21 @@
 	@echo ""
 
 test: all
-	cd $(TOOL_DIR); prove -r t/compilers/pge
+	cd $(TOOL_DIR) && prove -r t/compilers/pge
 
 testclean:
 	$(RM_F) "../../t/compilers/pge/*.pir" \
 	    "../../t/compilers/pge/p5regex/*.pir" \
-	    "../../t/compilers/pge/perl6regex/*.pir"
-	$(RM_F) "../../t/compilers/pge/*.pbc" \
+	    "../../t/compilers/pge/perl6regex/*.pir" \
+	    "../../t/compilers/pge/*.pbc" \
 	    "../../t/compilers/pge/p5regex/*.pbc" \
 	    "../../t/compilers/pge/perl6regex/*.pbc"
 
 clean: testclean
 	$(RM_F) \
-    PGE.pbc \
-    $(PARROT_LIBRARY)/PGE.pbc \
-    PGE/builtins_gen.pir
+	    PGE.pbc \
+	    $(PARROT_LIBRARY)/PGE.pbc \
+	    PGE/builtins_gen.pir
 
 realclean: clean
 	$(RM_F) Makefile



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