forked from pmichaud/pmtcl
/
Makefile.in
97 lines (80 loc) · 2.02 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
# Copyright (C) 2006-2009, The Perl Foundation.
# values from parrot_config
PARROT_BIN_DIR = @bindir@
EXE = @exe@
PERL = @perl@ # used implicitly by RM_F
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/Glob/Actions.pir \
src/Glob/Compiler.pir \
src/Glob/Grammar.pir \
src/Partcl/Actions.pir \
src/Partcl/Compiler.pir \
src/Partcl/Grammar.pir \
src/Partcl/Operators.pir \
src/Partcl/commands/array.pir \
src/Partcl/commands/file.pir \
src/Partcl/commands/info.pir \
src/Partcl/commands/interp.pir \
src/Partcl/commands/main.pir \
src/Partcl/commands/namespace.pir \
src/Partcl/commands/package.pir \
src/Partcl/commands/string.pir \
src/Partcl/commands/trace.pir \
src/TclLexPad.pir \
src/TclList.pir \
src/TclString.pir \
src/init.pir \
src/options.pir
SOURCES = \
src/class/tclstring.pir \
src/class/tcllist.pir
$(PARTCL_EXE) : partcl.pbc
$(PBC_TO_EXE) partcl.pbc
partcl.pbc : src/Partcl.pir $(SOURCES) $(GEN_SOURCES)
$(PARROT) -o $@ $<
.SUFFIXES: .pm .pir
.pm.pir:
$(PARROT_NQP) --target=pir -o $@ $<
## testing
TEST_FILES = \
t/sanity.t \
t/cmd_after.t \
t/cmd_concat.t \
t/cmd_eof.t \
t/cmd_error.t \
t/cmd_flush.t \
t/cmd_for.t \
t/cmd_incr.t \
t/cmd_lindex.t \
t/cmd_llength.t \
t/cmd_join.t \
t/cmd_split.t \
t/cmd_time.t \
t/cmd_while.t \
t/tcl_glob.t \
t/tcl_command_subst.t
# Only those tests that pass for now.
test: $(PARTCL_EXE)
prove -s --exec=./$(PARTCL_EXE) $(TEST_FILES)
testj: $(PARTCL_EXE)
prove -s -j3 --exec=./$(PARTCL_EXE) $(TEST_FILES)
# Expected to fail.
fulltest:
prove -s -j3 -r --exec=./$(PARTCL_EXE) t
## cleaning
clean:
$(RM_F) partcl*
$(RM_F) $(GEN_SOURCES)
distclean: realclean
realclean: clean
$(RM_F) Makefile
testclean: