source: proto/RE/output/Makefile @ 3277

Last change on this file since 3277 was 3005, checked in by bhull, 7 years ago

Regular Expression Changes

File size: 566 bytes
Line 
1OUTFILE=src/re.cpp
2
3
4PABLO_SRC=re_pablo_cc.py
5PABLO_TEMPLATE=pablo_template.cpp
6PABLO_COMPILER=../../Compiler/pablomain.py
7PABLO_ADD_DEBUG = # -a -b
8CC_Compiler=../../charsetcompiler/charset_compiler.py
9CC_Input=ccinput
10CC_Output=ccoutput
11PABLO_SRC_CC=re_pablo.py
12
13
14all: cc pablo
15
16cc:
17        python $(CC_Compiler) $(CC_Input) > $(CC_Output)
18        sed -e '/@cc_code/{r $(CC_Output)' -e 'd}' $(PABLO_SRC_CC) > $(PABLO_SRC)
19pablo:
20        python $(PABLO_COMPILER) $(PABLO_SRC) -t $(PABLO_TEMPLATE) -o $(OUTFILE) $(PABLO_ADD_DEBUG)
21
22
23clean: 
24        rm -f $(OUTFILE) $(CC_Output) $(PABLO_SRC)
25
26
Note: See TracBrowser for help on using the repository browser.