forked from biwascheme/biwascheme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.orig
152 lines (136 loc) · 4.86 KB
/
Makefile.orig
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#
# Makefile - gather javascripts and compress it
#
VERSION_FILE_IN = src/version.js.in
VERSION_FILE = src/version.js
<<<<<<< HEAD
CORE_FILES = \
src/stackbase.js \
src/system/set.js \
src/system/write.js \
src/system/pair.js \
src/system/value.js \
src/system/symbol.js \
src/system/char.js \
src/system/number.js \
src/system/port.js \
src/system/record.js \
src/system/hashtable.js \
src/system/syntax.js \
src/system/types.js \
src/system/parser.js \
src/system/compiler.js \
src/system/pause.js \
src/system/call.js \
src/system/interpreter.js \
src/library/infra.js \
src/library/r6rs_lib.js \
src/library/webscheme_lib.js \
src/library/extra_lib.js \
src/library/srfi.js
RELEASE_FILES = \
src/console/web-console.js \
src/prototype.js \
$(CORE_FILES) \
src/dumper.js \
src/release_initializer.js
#src/io.js
CONSOLE_FILES0 = \
src/prototype.js \
src/stackbase.js \
src/system/set.js \
src/system/write.js \
src/system/pair.js \
src/system/value.js \
src/system/symbol.js \
src/system/char.js \
src/system/number.js \
src/system/port.js \
src/system/hashtable.js \
src/system/syntax.js \
src/system/types.js \
src/system/parser.js \
src/system/compiler.js \
src/system/pause.js \
src/system/call.js \
src/system/interpreter.js \
src/library/infra.js \
src/library/r6rs_lib.js \
src/library/webscheme_lib.js \
src/library/extra_lib.js \
src/library/srfi.js \
src/dumper.js \
\
$(NULL)
VERSION_FILE_IN = src/version.js.in
VERSION_FILE = src/version.js
all: folder lib/biwascheme.js lib/release_biwascheme.js lib/console_biwascheme.js
=======
BASIC_FILES = \
src/system/class.js \
src/stackbase.js \
src/system/set.js \
src/system/write.js \
src/system/pair.js \
src/system/value.js \
src/system/symbol.js \
src/system/char.js \
src/system/number.js \
src/system/port.js \
src/system/record.js \
src/system/hashtable.js \
src/system/syntax.js \
src/system/types.js \
src/system/parser.js \
src/system/compiler.js \
src/system/pause.js \
src/system/call.js \
src/system/interpreter.js \
src/library/infra.js \
src/library/r6rs_lib.js \
src/library/js_interface.js \
src/library/extra_lib.js \
src/library/srfi.js
BROWSER_FILES = \
src/deps/jquery.js \
src/deps/underscore.js \
src/deps/underscore.string.js \
$(BASIC_FILES) \
src/library/webscheme_lib.js \
src/platforms/browser/dumper.js \
src/platforms/browser/console.js \
src/platforms/browser/release_initializer.js
CONSOLE_FILES = \
$(BASIC_FILES)
>>>>>>> 1e7b93a4d2ebd12f1e3363f702aa04d26561f537
folder:
@mkdir -p lib
build: release/biwascheme.js release/biwascheme-min.js release/console_biwascheme.js node_modules/biwascheme/lib/biwascheme.js
$(VERSION_FILE): $(VERSION_FILE_IN) $(BROWSER_FILES) $(CONSOLE_FILES) VERSION Makefile
cat $< | sed -e "s/@GIT_COMMIT@/`git log -1 --pretty=format:%H`/" | sed -e "s/@VERSION@/`cat VERSION`/" > $@
<<<<<<< HEAD
lib/biwascheme.js: $(VERSION_FILE) $(CORE_FILES)
cat $^ | yui-compressor --type js -o $@
@echo "Wrote " $@
lib/release_biwascheme.js: $(VERSION_FILE) $(CORE_FILES)
cat $^ | yui-compressor --type js -o $@
=======
release/biwascheme.js: $(VERSION_FILE) $(BROWSER_FILES) Makefile
cat $(VERSION_FILE) > $@
cat $(BROWSER_FILES) >> $@
@echo "Wrote " $@
release/biwascheme-min.js: release/biwascheme.js
uglifyjs -o $@ release/biwascheme.js
>>>>>>> 1e7b93a4d2ebd12f1e3363f702aa04d26561f537
@echo "Wrote " $@
release/console_biwascheme.js: $(VERSION_FILE) $(CONSOLE_FILES) Makefile
cat $(VERSION_FILE) > $@
cat $(CONSOLE_FILES) >> $@
@echo "Wrote " $@
node_modules/biwascheme/lib/biwascheme.js: src/platforms/node/module_preamble.js release/console_biwascheme.js src/platforms/node/module_postamble.js
cat src/platforms/node/module_preamble.js > $@
cat release/console_biwascheme.js >> $@
cat src/platforms/node/module_postamble.js >> $@
@echo "Wrote " $@
browser_test:
cd test/browser_functions; node ./server.js