[svn:parrot] r41132 - trunk/config/gen/makefiles
japhb at svn.parrot.org
japhb at svn.parrot.org
Mon Sep 7 20:02:10 UTC 2009
Author: japhb
Date: Mon Sep 7 20:02:06 2009
New Revision: 41132
URL: https://trac.parrot.org/parrot/changeset/41132
Log:
[data_json] svn copy makefile skeleton: json.in -> data_json.in
Added:
trunk/config/gen/makefiles/data_json.in
- copied unchanged from r41131, trunk/config/gen/makefiles/json.in
Copied: trunk/config/gen/makefiles/data_json.in (from r41131, trunk/config/gen/makefiles/json.in)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/config/gen/makefiles/data_json.in Mon Sep 7 20:02:06 2009 (r41132, copy of r41131, trunk/config/gen/makefiles/json.in)
@@ -0,0 +1,60 @@
+# Copyright (C) 2006-2009, Parrot Foundation.
+# $Id$
+
+PERL := @perl@
+RM_F := @rm_f@
+PARROT := ../../parrot at exe@
+
+TOOL_DIR := ../..
+PGE_DIR := ../../compilers/pge
+TGE_DIR := ../../compilers/tge
+
+# the default target
+all: JSON.pbc
+
+# This is a listing of all targets, that are meant to be called by users
+help:
+ @echo ""
+ @echo "Following targets are available for the user:"
+ @echo ""
+ @echo " all: JSON.pbc"
+ @echo " This is the default."
+ @echo "Testing:"
+ @echo " test: Run the test suite."
+ @echo " testclean: Clean up test results and temporary files."
+ @echo ""
+ @echo "Cleaning:"
+ @echo " clean: Basic cleaning up."
+ @echo ""
+ @echo "Misc:"
+ @echo " help: Print this help message."
+ @echo ""
+
+test: all
+ cd $(TOOL_DIR) && prove -r t/compilers/json
+
+testclean:
+ $(RM_F) "../../t/compilers/json/*.pir"
+
+JSON.pbc : JSON/grammar.pbc JSON/pge2pir.pbc JSON.pir
+ $(PARROT) --output=JSON.pbc JSON.pir
+
+JSON/grammar.pbc : JSON/grammar.pir
+ $(PARROT) --output=JSON/grammar.pbc JSON/grammar.pir
+
+JSON/grammar.pir : JSON/grammar.pg
+ $(PARROT) $(TOOL_DIR)/runtime/parrot/library/PGE/Perl6Grammar.pbc --output=JSON/grammar.pir JSON/grammar.pg
+
+JSON/pge2pir.pbc : JSON/pge2pir.pir
+ $(PARROT) --output=JSON/pge2pir.pbc JSON/pge2pir.pir
+
+JSON/pge2pir.pir : JSON/pge2pir.tg
+ $(PARROT) $(TGE_DIR)/tgc.pir --output=JSON/pge2pir.pir JSON/pge2pir.tg
+
+clean : testclean
+ $(RM_F) "JSON/*.pbc" "JSON/*.pir" JSON.pbc
+
+# Local variables:
+# mode: makefile
+# End:
+# vim: ft=make:
More information about the parrot-commits
mailing list