forked from pmichaud/pmtcl
/
Makefile.in
85 lines (69 loc) · 1.89 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
# 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/array.pir \
src/Partcl/commands/control.pir \
src/Partcl/commands/dict.pir \
src/Partcl/commands/file.pir \
src/Partcl/commands/info.pir \
src/Partcl/commands/interp.pir \
src/Partcl/commands/list.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/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: