-
Notifications
You must be signed in to change notification settings - Fork 29
/
Makefile
57 lines (46 loc) · 1.23 KB
/
Makefile
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
##########################################
# Akihabara Game Engine
# http://akihabara.github.com
##########################################
NAME = Akihabara
# Google Closure Compiler Options
GCC_OPTION = --jscomp_off=internetExplorerChecks
# Some things must be fixed to use this flag on GCC
#--compilation_level ADVANCED_OPTIMIZATIONS
# Directories
SRCDIR = src
DOCDIR = doc
# Akihabara Files
FILES = $(SRCDIR)/akihabara.js \
$(SRCDIR)/audio.js \
$(SRCDIR)/debug.js \
$(SRCDIR)/gamecycle.js \
$(SRCDIR)/gbox.js \
$(SRCDIR)/helpers.js \
$(SRCDIR)/input.js \
$(SRCDIR)/iphofretboard.js \
$(SRCDIR)/iphopad.js \
$(SRCDIR)/platformer.js \
$(SRCDIR)/shmup.js \
$(SRCDIR)/tile.js \
$(SRCDIR)/tools.js \
$(SRCDIR)/topview.js \
$(SRCDIR)/toys.js \
$(SRCDIR)/trigo.js
prepare:
git submodule init
git submodule update
release: unify
closure $(GCC_OPTION) --js=$(NAME).js --js_output_file=$(NAME).min.js
unify: clean
cat $(FILES) >> $(NAME).js
clean:
rm -rf Akihabara.*
rm -rf $(DOCDIR)/*.html $(DOCDIR)/styles
doc: prepare clean
mkdir -p $(DOCDIR)
dependencies/jsdoc/jsdoc src
mv out/*.html out/styles $(DOCDIR)
rm -rf out
check:
find src -name "*.js" -exec jshint {} \;