-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 905 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
PT=/Users/john/lib/tcllib-1.15/modules/pt/pt
VERSION = 1.0
isbl : main.tcl isbl-$(VERSION).tm
mkdir -p isbl.vfs/modules/
cp isbl-$(VERSION).tm isbl.vfs/modules/isbl-$(VERSION).tm
sdx wrap isbl -runtime `which tclkit8.6`
make test
isbl-$(VERSION).tm : unsource isbl.tcl isbl-parser.tcl isbl-actions.tcl
unsource isbl.tcl > isbl-$(VERSION).tm
isbl-actions.tcl : parser-actions isbl-parser.peg isbl-actions.act
./parser-actions isbl-parser.peg isbl-actions.act > isbl-actions.tcl
isbl-parser.tcl : isbl-parser.peg
$(PT) generate snit -class isbl-parser -name isbl-parser isbl-parser.tcl peg isbl-parser.peg
#$(PT) generate oo -class isbl-parser -name isbl-parser isbl-parser.tcl peg isbl-parser.peg
sed -e s/PACKAGE/isbl-parser/ < isbl-parser.tcl > tmp
sed -e s/^return// < tmp > isbl-parser.tcl
rm tmp
test :
tclkit8.6 ./isbl-test.tcl
clean :
rm -f isbl-parser.tcl