UnitTest:JQM Unit TC helper has been added,TCs have been modified
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.2.0 / Makefile
1 # in build/bin/config.sh this setting will alter the variable definitions to match
2 # the changes for the deploy target in the makefile. temp solution
3 ARGS = IS_DEPLOY_TARGET=false
4 deploy: ARGS = IS_DEPLOY_TARGET=true
5
6 # The output folder for the finished files
7 OUTPUT = compiled
8
9 # Build Targets
10 # When no build target is specified, all gets ran
11 all: css js zip notify
12
13 clean: init
14         @@node node_modules/.bin/grunt clean
15
16 # Create the output directory.
17 # NOTE it doesn't appear as though you can override init from a task file
18 init:
19         @@if ! (node -v | grep "\(v0.[6-9]\|v[1-9].[0-9]\)" > /dev/null); then echo "!!! node.js > 0.6.x required" && exit 1; fi
20 #       @@npm install
21         @@node node_modules/.bin/grunt custom_init
22
23 # Build and minify the CSS files
24 css: init
25         @@${ARGS} node node_modules/.bin/grunt css
26
27 # Build and minify the JS files
28 js: init
29         @@${ARGS} node node_modules/.bin/grunt js
30
31 # -------------------------------------------------
32 #
33 # For jQuery Team Use Only
34 #
35 # -------------------------------------------------
36 docs: init js css
37         @@${ARGS} bash build/bin/docs.sh
38
39 # Output a message saying the process is complete
40 notify: init
41         @@echo "The files have been built and are in: " $$(pwd)/${OUTPUT}
42
43
44 # Zip up the jQm files without docs
45 zip: init css js
46         @@${ARGS} bash build/bin/zip.sh
47
48 build_latest: css docs js zip
49         @@${ARGS} bash build/bin/build_latest.sh
50
51 # Push the latest git version to the CDN. This is done on a post commit hook
52 deploy_latest:
53         @@${ARGS} bash build/bin/deploy_latest.sh
54
55 # TODO target name preserved to avoid issues during refactor, latest -> deploy_latest
56 latest: build_latest deploy_latest
57
58 # Push the nightly backups. This is done on a server cronjob
59 deploy_nightlies:
60         @@${ARGS} bash build/bin/deploy_nightlies.sh
61
62 # Deploy a finished release. This is manually done.
63 deploy: clean init css js docs zip
64         @@${ARGS} bash build/bin/deploy.sh