[svn:parrot] r35416 - in trunk: . languages/befunge languages/befunge/config/makefiles

Bernhard Schmalhofer Bernhard.Schmalhofer at gmx.de
Mon Jan 12 09:57:29 UTC 2009


Reini Urban schrieb:
> bernhard at cvs.perl.org schrieb:
>   
>> Author: bernhard
>> Date: Sun Jan 11 06:43:34 2009
>> New Revision: 35416
>>
>> Added:
>>    trunk/languages/befunge/Configure.pl   (contents, props changed)
>>       - copied, changed from r35414, /trunk/languages/pipp/Configure.pl
>> Modified:
>>    trunk/MANIFEST
>>    trunk/languages/befunge/README
>>    trunk/languages/befunge/config/makefiles/root.in
>>
>> Log:
>> [befunge] Add a Configure.pl
>>
>>
>> Modified: trunk/MANIFEST
>> ==============================================================================
>> --- trunk/MANIFEST	(original)
>> +++ trunk/MANIFEST	Sun Jan 11 06:43:34 2009
>> @@ -1,7 +1,7 @@
>>  # ex: set ro:
>>  # $Id$
>>  #
>> -# generated by tools/dev/mk_manifest_and_skip.pl Sun Jan 11 12:31:49 2009 UT
>> +# generated by tools/dev/mk_manifest_and_skip.pl Sun Jan 11 14:42:44 2009 UT
>>  #
>>  # See tools/dev/install_files.pl for documentation on the
>>  # format of this file.
>> @@ -1161,6 +1161,7 @@
>>  languages/abc/t/abc_statement                               [abc]
>>  languages/abc/t/harness                                     [abc]
>>  languages/befunge/Changes                                   [befunge]
>> +languages/befunge/Configure.pl                              [befunge]
>>  languages/befunge/MAINTAINER                                [befunge]
>>  languages/befunge/README                                    [befunge]
>>  languages/befunge/befunge.pir                               [befunge]
>>
>> Copied: trunk/languages/befunge/Configure.pl (from r35414, /trunk/languages/pipp/Configure.pl)
>> ==============================================================================
>> --- /trunk/languages/pipp/Configure.pl	(original)
>> +++ trunk/languages/befunge/Configure.pl	Sun Jan 11 06:43:34 2009
>> @@ -6,7 +6,7 @@
>>  use 5.008;
>>  
>>  my $build_dir = '../..';
>> -my $cmd = qq{$^X -Ilib tools/dev/reconfigure.pl --step=gen::languages --languages=pipp};
>> +my $cmd = qq{$^X -Ilib tools/dev/reconfigure.pl --step=gen::languages --languages=befunge};
>>  
>>  print "Running '$cmd' in $build_dir\n";
>>  
>>
>> Modified: trunk/languages/befunge/README
>> ==============================================================================
>> --- trunk/languages/befunge/README	(original)
>> +++ trunk/languages/befunge/README	Sun Jan 11 06:43:34 2009
>> @@ -34,6 +34,7 @@
>>          maths.pir      handles all the maths instructions
>>          stack.pir      handles the stack instructions
>>          Makefile       a little Makefile generated by config/makefiles/root.in
>> +        Configure.pl   regenerate Makefile
>>          test.bef       a befunge script that test almost all the
>>                         instructions (and is even self-modifying!)
>>          pascserp.bef   a befunge script generating variant of Sierpinsky
>>
>> Modified: trunk/languages/befunge/config/makefiles/root.in
>> ==============================================================================
>> --- trunk/languages/befunge/config/makefiles/root.in	(original)
>> +++ trunk/languages/befunge/config/makefiles/root.in	Sun Jan 11 06:43:34 2009
>> @@ -27,6 +27,9 @@
>>  	@echo ""
>>  	@echo "  help:              print this help message"
>>  
>> +# regenerate the Makefile
>> +Makefile: config/makefiles/root.in
>> +	$(PERL) Configure.pl
>>  
>>  all: build
>>  
>>
>>     
>
> Why this overkill? We don't really need a Configure.pl for a
> Makefile one-liner.
>
> My pdd30install patches and branch had for all language makefiles this 
> simple rule:
>
> HLLNAME       = befunge
> RECONFIGURE   = $(PERL) $(BUILD_DIR)/tools/dev/reconfigure.pl
>
> # regenerate the Makefile
> Makefile: config/makefiles/root.in
> 	cd $(BUILD_DIR) && $(RECONFIGURE) --step=gen::languages 
> --languages=$(HLLNAME)
>
>   

I thought that this was neat when I saw it in 'languages/pheme', so I 
did it that way in 'befunge' and 'pipp'.
For Pipp I do need a working Configure.pl, when moving it out of the 
Parrot svn repository.

Regards,
  Bernhard



More information about the parrot-dev mailing list