forked from pmichaud/pmtcl
/
Makefile.in
138 lines (122 loc) · 3.67 KB
/
Makefile.in
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# Copyright (C) 2006-2009, The Perl Foundation.
# values from parrot_config
PARROT_BIN_DIR = @bindir@
EXE = @exe@
PERL = @perl@
RM_F = @rm_f@
# locations of parrot resources
PARROT = $(PARROT_BIN_DIR)/parrot$(EXE)
PARROT_NQP = $(PARROT_BIN_DIR)/parrot-nqp$(EXE)
PBC_TO_EXE = $(PARROT_BIN_DIR)/pbc_to_exe$(EXE)
PARTCL_EXE = partcl$(EXE)
GEN_SOURCES = \
src/ARE/Actions.pir \
src/ARE/Compiler.pir \
src/ARE/Grammar.pir \
src/StringGlob/Actions.pir \
src/StringGlob/Compiler.pir \
src/StringGlob/Grammar.pir \
src/FileGlob/Actions.pir \
src/FileGlob/Compiler.pir \
src/FileGlob/Grammar.pir \
src/Partcl/Actions.pir \
src/Partcl/Compiler.pir \
src/Partcl/Grammar.pir \
src/Partcl/Operators.pir \
src/Partcl/commands/after.pir \
src/Partcl/commands/append.pir \
src/Partcl/commands/apply.pir \
src/Partcl/commands/array.pir \
src/Partcl/commands/binary.pir \
src/Partcl/commands/break.pir \
src/Partcl/commands/catch.pir \
src/Partcl/commands/cd.pir \
src/Partcl/commands/concat.pir \
src/Partcl/commands/continue.pir \
src/Partcl/commands/dict.pir \
src/Partcl/commands/eof.pir \
src/Partcl/commands/error.pir \
src/Partcl/commands/eval.pir \
src/Partcl/commands/exit.pir \
src/Partcl/commands/expr.pir \
src/Partcl/commands/fileevent.pir \
src/Partcl/commands/file.pir \
src/Partcl/commands/flush.pir \
src/Partcl/commands/foreach.pir \
src/Partcl/commands/format.pir \
src/Partcl/commands/for.pir \
src/Partcl/commands/gets.pir \
src/Partcl/commands/global.pir \
src/Partcl/commands/glob.pir \
src/Partcl/commands/if.pir \
src/Partcl/commands/incr.pir \
src/Partcl/commands/info.pir \
src/Partcl/commands/interp.pir \
src/Partcl/commands/join.pir \
src/Partcl/commands/lappend.pir \
src/Partcl/commands/lassign.pir \
src/Partcl/commands/lindex.pir \
src/Partcl/commands/linsert.pir \
src/Partcl/commands/list.pir \
src/Partcl/commands/llength.pir \
src/Partcl/commands/lrange.pir \
src/Partcl/commands/lrepeat.pir \
src/Partcl/commands/lreplace.pir \
src/Partcl/commands/lreverse.pir \
src/Partcl/commands/lset.pir \
src/Partcl/commands/lsort.pir \
src/Partcl/commands/namespace.pir \
src/Partcl/commands/package.pir \
src/Partcl/commands/proc.pir \
src/Partcl/commands/puts.pir \
src/Partcl/commands/pwd.pir \
src/Partcl/commands/regexp.pir \
src/Partcl/commands/rename.pir \
src/Partcl/commands/return.pir \
src/Partcl/commands/set.pir \
src/Partcl/commands/socket.pir \
src/Partcl/commands/source.pir \
src/Partcl/commands/split.pir \
src/Partcl/commands/string.pir \
src/Partcl/commands/subst.pir \
src/Partcl/commands/switch.pir \
src/Partcl/commands/time.pir \
src/Partcl/commands/trace.pir \
src/Partcl/commands/unset.pir \
src/Partcl/commands/uplevel.pir \
src/Partcl/commands/upvar.pir \
src/Partcl/commands/variable.pir \
src/Partcl/commands/vwait.pir \
src/Partcl/commands/while.pir \
src/TclArray.pir \
src/TclLexPad.pir \
src/TclList.pir \
src/TclString.pir \
src/init.pir \
src/options.pir
$(PARTCL_EXE) : partcl.pbc
$(PBC_TO_EXE) partcl.pbc
partcl.pbc : src/Partcl.pir $(GEN_SOURCES)
$(PARROT) -o $@ $<
.SUFFIXES: .pm .pir
.pm.pir:
$(PARROT_NQP) --target=pir -o $@ $<
Makefile: Configure.pl build/Makefile.in
$(PERL) Configure.pl
## testing
test: $(PARTCL_EXE)
prove -s --exec=./$(PARTCL_EXE) -r t
testj: $(PARTCL_EXE)
prove -s -j3 --exec=./$(PARTCL_EXE) -r t
# Do our tests actually work with our target tclsh?
test-tcl:
prove -s --exec=tclsh8.5 -r t
fulltest: test
## cleaning
clean:
$(RM_F) partcl*
$(RM_F) $(GEN_SOURCES)
distclean: realclean
realclean: clean
$(RM_F) Makefile
testclean: