Skip to content

Commit 534d508

Browse files
committed
Add makefile_lite.
1 parent ccd52df commit 534d508

File tree

1 file changed

+92
-0
lines changed

1 file changed

+92
-0
lines changed

Diff for: makefile_lite

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# To run this makefile, you must have all the necessary tools installed.
2+
#
3+
# To install all the necessary tools, simply run the following...
4+
#
5+
# sudo make -B tools
6+
#
7+
8+
# Create the list of files
9+
lintfiles = src/drupalgap.js\
10+
src/includes/common.inc.js\
11+
src/includes/form.inc.js\
12+
src/includes/menu.inc.js\
13+
src/includes/theme.inc.js\
14+
src/modules/block/block.js\
15+
src/modules/comment/comment.js\
16+
src/modules/contact/contact.js\
17+
src/modules/entity/entity.js\
18+
src/modules/field/field.js\
19+
src/modules/file/file.js\
20+
src/modules/image/image.js\
21+
src/modules/menu/menu.js\
22+
src/modules/mvc/mvc.js\
23+
src/modules/node/node.js\
24+
src/modules/search/search.js\
25+
src/modules/services/services.js\
26+
src/modules/system/system.js\
27+
src/modules/user/user.js\
28+
src/modules/taxonomy/taxonomy.js\
29+
src/modules/views/views.js\
30+
31+
files = src/drupalgap.js\
32+
src/includes/common.inc.js\
33+
src/includes/form.inc.js\
34+
src/includes/menu.inc.js\
35+
src/includes/theme.inc.js\
36+
src/modules/block/block.js\
37+
src/modules/comment/comment.js\
38+
src/modules/contact/contact.js\
39+
src/modules/entity/entity.js\
40+
src/modules/field/field.js\
41+
src/modules/file/file.js\
42+
src/modules/image/image.js\
43+
src/modules/menu/menu.js\
44+
src/modules/mvc/mvc.js\
45+
src/modules/node/node.js\
46+
src/modules/search/search.js\
47+
src/modules/services/services.js\
48+
src/modules/system/system.js\
49+
src/modules/user/user.js\
50+
src/modules/taxonomy/taxonomy.js\
51+
src/modules/views/views.js\
52+
53+
#.DEFAULT_GOAL := all
54+
55+
#all: jslint js
56+
57+
# Perform a jsLint on all the files.
58+
#jslint: ${lintfiles}
59+
# gjslint $^
60+
61+
# Create an aggregated js file and a compressed js file.
62+
js: ${files}
63+
@echo "Generating aggregated bin/drupalgap.js file"
64+
@cat > bin/drupalgap.js $^
65+
# @echo "Generating compressed bin/drupalgap.min.js file"
66+
# curl -s \
67+
# -d compilation_level=SIMPLE_OPTIMIZATIONS \
68+
# -d output_format=text \
69+
# -d output_info=compiled_code \
70+
# --data-urlencode "js_code@bin/drupalgap.js" \
71+
# http://closure-compiler.appspot.com/compile \
72+
# > bin/drupalgap.min.js
73+
74+
# Create the documentation from source code.
75+
jsdoc: ${files}
76+
@echo "Generating documetation."
77+
@java -jar tools/jsdoc-toolkit/jsrun.jar tools/jsdoc-toolkit/app/run.js -a -t=tools/jsdoc-toolkit/templates/jsdoc -d=doc $^
78+
79+
# Fix the js style on all the files.
80+
fixjsstyle: ${files}
81+
fixjsstyle $^
82+
83+
# Install the necessary tools.
84+
tools:
85+
apt-get install python-setuptools
86+
apt-get install unzip
87+
easy_install http://closure-linter.googlecode.com/files/closure_linter-latest.tar.gz
88+
wget http://jsdoc-toolkit.googlecode.com/files/jsdoc_toolkit-2.4.0.zip -P tools
89+
unzip tools/jsdoc_toolkit-2.4.0.zip -d tools
90+
mv tools/jsdoc_toolkit-2.4.0/jsdoc-toolkit tools/jsdoc-toolkit
91+
rm -rd tools/jsdoc_toolkit-2.4.0
92+
rm tools/jsdoc_toolkit-2.4.0.zip

0 commit comments

Comments
 (0)