Changeset 1159


Ignore:
Timestamp:
Apr 25, 2011, 2:57:59 PM (8 years ago)
Author:
ksherdy
Message:

Add proto target to Makefile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/RE2PBS/Makefile

    r1154 r1159  
    33ANTLRWORKS_JAR  = lib/antlrworks-1.4.2.jar
    44RE2PBS_OUT_DIR  = bin
    5 RE2PBS_SRC_FILE = test/HexCharRefDef.txt
     5RE2PBS_PROTO    = prototype.py
     6RE2PBS_DEF_FILE = test/HexCharRefDef.txt
     7RE2PBS_TEST_FILE= test/CharRefTest.txt
    68
    79PABLO_SRC_FILE  = compilable.py
     
    1012PABLO_OUT_FILE  = src/test.cpp
    1113
     14
     15
    1216antlr: 
    1317        java -cp $(CLASSPATH) org.antlr.Tool -o $(RE2PBS_OUT_DIR) $(GRAMMAR_NAME).g
    1418
    15 clean:
    16         rm -f $(RE2PBS_OUT_DIR)/$(GRAMMAR_NAME)Lexer.* $(RE2PBS_OUT_DIR)/$(GRAMMAR_NAME)Parser.* $(RE2PBS_OUT_DIR)/$(GRAMMAR_NAME).tokens $(PABLO_OUT_FILE)
     19re2pbs:
     20        python $(RE2PBS_OUT_DIR)/main.py $(RE2PBS_DEF_FILE)
    1721
    18 re2pbs:
    19         python $(RE2PBS_OUT_DIR)/main.py $(RE2PBS_SRC_FILE)
     22proto:
     23        python $(RE2PBS_PROTO) $(RE2PBS_TEST_FILE)
    2024
    2125pablo:  $(PABLO_SRC_FILE)
     
    2529        java -jar $(ANTLRWORKS_JAR)
    2630
     31clean:
     32        rm -f $(RE2PBS_OUT_DIR)/$(GRAMMAR_NAME)Lexer.* $(RE2PBS_OUT_DIR)/$(GRAMMAR_NAME)Parser.* $(RE2PBS_OUT_DIR)/$(GRAMMAR_NAME).tokens $(PABLO_OUT_FILE)
    2733
     34
Note: See TracChangeset for help on using the changeset viewer.