[svn:parrot] r43219 - trunk/config/gen/makefiles
cotto at svn.parrot.org
cotto at svn.parrot.org
Wed Dec 23 04:39:44 UTC 2009
Author: cotto
Date: Wed Dec 23 04:39:43 2009
New Revision: 43219
URL: https://trac.parrot.org/parrot/changeset/43219
Log:
[pirc] initial stab at making it easy to regenerate pirc's lexer and parser
This is possibly wrong and should be used only with care for now.
Modified:
trunk/config/gen/makefiles/pirc.in
Modified: trunk/config/gen/makefiles/pirc.in
==============================================================================
--- trunk/config/gen/makefiles/pirc.in Wed Dec 23 03:28:24 2009 (r43218)
+++ trunk/config/gen/makefiles/pirc.in Wed Dec 23 04:39:43 2009 (r43219)
@@ -23,6 +23,7 @@
LINKFLAGS := @linkflags@ @link_debug@ @ld_debug@
LD := @ld@
LDFLAGS := @ldflags@ @ld_debug@
+TOUCH := @touch@
SOURCES := \
src/main.c \
@@ -71,6 +72,17 @@
@rpath_blib@ @libparrot_linkflags@ $(C_LIBS) $(LINKFLAGS) $(LINK_DYNAMIC)
#IF(win32): if exist $@.manifest mt.exe -nologo -manifest $@.manifest -outputresource:$@;1
+src/pir.y.flag src/pirparser.c src/pirparser.h : src/pir.y
+ cd src && $(YACC) pir.y -d -o pirparser.c
+ #$(PERL) $(BUILD_TOOLS_DIR)/fixup_gen_file.pl -noheaderizer src/pirparser.c src/pir.y
+ #$(PERL) $(BUILD_TOOLS_DIR)/fixup_gen_file.pl -noheaderizer src/pirparser.h src/pir.y
+ $(TOUCH) src/pir.y.flag src/pirparser.c src/pirparser.h
+
+src/pir.l.flag src/pirlexer.c : src/pir.l
+ cd src && $(LEX) -opirlexer.c pir.l
+ $(TOUCH) src/pir.l.flag src/pirlexer.c
+
+
src/pirparser$(O): src/pirparser.c src/pirparser.h
src/pirlexer$(O): src/pirlexer.c src/pirlexer.h
src/pircompunit$(O): src/pircompunit.c src/pircompunit.h
More information about the parrot-commits
mailing list