-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (20 loc) · 880 Bytes
/
Makefile
File metadata and controls
32 lines (20 loc) · 880 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
30
31
32
build_dir := RedDwarf-JS
js_files := $(addprefix src/, namespace.js object_system.js hash_table.js byte_array.js tcp_socket_ext.js simple_sgs_protocol.js client_channel.js message_filter.js sgs_event.js simple_client.js)
minified_js_file := red_dwarf.js
unminified_js_file := red_dwarf_readable.js
zip_file := $(build_dir).zip
files_to_release := example.html orbited.cfg README.markdown LICENSE.txt $(minified_js_file)
$(minified_js_file): $(js_files)
cat $(js_files) | jsmin > $(minified_js_file)
$(unminified_js_file): $(js_files)
cat $(js_files) > $(unminified_js_file)
$(build_dir):
mkdir $(build_dir)
$(zip_file): $(build_dir) $(files_to_release)
cp $(files_to_release) $(build_dir)
zip -r $(zip_file) $(build_dir)
readable: $(unminified_js_file)
clean:
rm -r $(build_dir) $(zip_file) $(minified_js_file) $(unminified_js_file)
dist: $(zip_file)
all: dist