Author: kjs
Date: Wed Mar 26 05:28:37 2008
New Revision: 26565

Modified:
   trunk/config/gen/makefiles/nqp.in

Log:
[nqp] update makefile with a "boot" target, which builds the bootstrap version 
of nqp. 

Modified: trunk/config/gen/makefiles/nqp.in
==============================================================================
--- trunk/config/gen/makefiles/nqp.in   (original)
+++ trunk/config/gen/makefiles/nqp.in   Wed Mar 26 05:28:37 2008
@@ -18,12 +18,22 @@
   src/Grammar/Actions.pir \
   src/builtins.pir
 
+BOOTSRC = bootstrap/nqp.pir \
+       bootstrap/actions.pm
+
 # the default target
 nqp.pbc: $(PARROT) $(PGE_LIBRARY)/Perl6Grammar.pir $(SOURCES)
        $(PARROT) $(PARROT_ARGS) $(PGE_LIBRARY)/Perl6Grammar.pir \
            --output=src/Grammar_gen.pir src/Grammar.pg
        $(PARROT) -o nqp.pbc nqp.pir
 
+boot: $(BOOTSRC)
+       $(PARROT) nqp.pbc \
+       --output=bootstrap/gen_actions.pir \
+       --target=pir \
+       bootstrap/actions.pm
+       $(PARROT) --output-pbc -o bootstrap/nqp.pbc bootstrap/nqp.pir
+
 # This is a listing of all targets, that are meant to be called by users
 help:
        @echo ""
@@ -53,6 +63,8 @@
 CLEANUPS = \
   nqp.pbc \
   src/Grammar_gen.pir \
+  bootstrap/gen_actions.pir \
+  bootstrap/nqp.pbc
 
 
 clean:

Reply via email to