Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 64 lines (48 sloc) 1.631 kb
b6a1415 @johnbender deploy target converted using prefix args for deploy variables
johnbender authored
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
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
6 # The output folder for the finished files
7 OUTPUT = compiled
96c1647 @eddiemonge Changes so make can be run with just make nightly for the nightly builds
eddiemonge authored
8
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
9 # Build Targets
10 # When no build target is specified, all gets ran
e7ee7fe @gseguin More house cleaning
gseguin authored
11 all: css js zip notify
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
12
1afbfc4 @johnbender fix for bsd/linux sed incompat
johnbender authored
13 clean:
de92360 @gseguin House cleaning: clean target cleans, init target inits
gseguin authored
14 @@rm -rf ${OUTPUT}
15 @@rm -rf tmp
16
1afbfc4 @johnbender fix for bsd/linux sed incompat
johnbender authored
17 # Create the output directory.
e7ee7fe @gseguin More house cleaning
gseguin authored
18 init:
5fe3f99 @johnbender switched Makefile to grunt for js and css build targets, fixed image cop...
johnbender authored
19 @@npm install
de92360 @gseguin House cleaning: clean target cleans, init target inits
gseguin authored
20 @@mkdir -p ${OUTPUT}
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
21
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
22 # Build and minify the CSS files
23 css: init
5fe3f99 @johnbender switched Makefile to grunt for js and css build targets, fixed image cop...
johnbender authored
24 @@node node_modules/.bin/grunt css
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
25
0c5cc21 @johnbender moved css and js build targets out to shell scripts, first step in grunt...
johnbender authored
26 # Build and minify the JS files
27 js: init
5fe3f99 @johnbender switched Makefile to grunt for js and css build targets, fixed image cop...
johnbender authored
28 @@node node_modules/.bin/grunt js
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
29
5fe3f99 @johnbender switched Makefile to grunt for js and css build targets, fixed image cop...
johnbender authored
30 # -------------------------------------------------
31 #
32 # For jQuery Team Use Only
33 #
34 # -------------------------------------------------
bf4c4c8 @gseguin docs are not using requireJS anymore so use generated js/css resulting f...
gseguin authored
35 docs: init js css
b6a1415 @johnbender deploy target converted using prefix args for deploy variables
johnbender authored
36 @@${ARGS} bash build/bin/docs.sh
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
37
38 # Output a message saying the process is complete
39 notify: init
40 @@echo "The files have been built and are in: " $$(pwd)/${OUTPUT}
e2fa299 @jeresig Adjust sub-directory URLs before deploying the demos.
jeresig authored
41
42
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
43 # Zip up the jQm files without docs
b183972 @johnbender remove all zip files before compressing, add build latest and deploy lat...
johnbender authored
44 zip: init css js
b6a1415 @johnbender deploy target converted using prefix args for deploy variables
johnbender authored
45 @@${ARGS} bash build/bin/zip.sh
19c952a @eddiemonge For all versions of make except for deploy, the outputted scripts will h...
eddiemonge authored
46
84f6085 @johnbender remove init from latest build target
johnbender authored
47 build_latest: css docs js zip
b6a1415 @johnbender deploy target converted using prefix args for deploy variables
johnbender authored
48 @@${ARGS} bash build/bin/build_latest.sh
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
49
48e8b1d @johnbender remove the version sed, keep the defines in the lib js (not compiled) fo...
johnbender authored
50 # Push the latest git version to the CDN. This is done on a post commit hook
0b858d2 @johnbender split up latest build and deploy
johnbender authored
51 deploy_latest:
b6a1415 @johnbender deploy target converted using prefix args for deploy variables
johnbender authored
52 @@${ARGS} bash build/bin/deploy_latest.sh
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
53
0b858d2 @johnbender split up latest build and deploy
johnbender authored
54 # TODO target name preserved to avoid issues during refactor, latest -> deploy_latest
55 latest: build_latest deploy_latest
56
9dcc864 @johnbender push the latest build output as nightlies
johnbender authored
57 # Push the nightly backups. This is done on a server cronjob
58 deploy_nightlies:
b6a1415 @johnbender deploy target converted using prefix args for deploy variables
johnbender authored
59 @@${ARGS} bash build/bin/deploy_nightlies.sh
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
60
61 # Deploy a finished release. This is manually done.
4a0085b @johnbender add clean as a deploy prereq
johnbender authored
62 deploy: clean init css js docs zip
b6a1415 @johnbender deploy target converted using prefix args for deploy variables
johnbender authored
63 @@${ARGS} bash build/bin/deploy.sh
Something went wrong with that request. Please try again.