source: proto/RE/output/Makefile @ 3404

Last change on this file since 3404 was 3404, checked in by cameron, 6 years ago

Update template to print matched lines, add -c option for counts only

File size: 568 bytes
Line 
1OUTFILE=src/re.cpp
2
3
4PABLO_SRC=re_pablo_cc.py
5PABLO_TEMPLATE=grep_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) -W $(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.