Skip to content
This repository
Newer
Older
100644 87 lines (69 sloc) 2.772 kb
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
1 # Helper Variables
2 # The command to replace the @VERSION in the files with the actual version
27a70950 » johnbender
2012-02-29 add commit sha to deployed js and css
3 HEAD_SHA = $(shell git log -1 --format=format:"%H")
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
4 VER = sed "s/v@VERSION/$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd")/"
5f2c4025 » eddiemonge
2011-11-17 Add the current git version to the build process when its not a stabl…
5 VER_MIN = "/*! jQuery Mobile v$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd") jquerymobile.com | jquery.org/license */"
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
6 VER_OFFICIAL = $(shell cat version.txt)
ae62a51f » johnbender
2012-02-16 set version in the non concat js files for latest tests/unit/*
7 SED_VER_REPLACE = 's/__version__/"${VER_OFFICIAL}"/g'
8 SED_VER_API = sed ${SED_VER_REPLACE}
9 SED_INPLACE_EXT = "whyunowork"
27a70950 » johnbender
2012-02-29 add commit sha to deployed js and css
10 deploy: VER = sed "s/v@VERSION/${VER_OFFICIAL} ${HEAD_SHA}/"
11 deploy: VER_MIN = "/*! jQuery Mobile v${VER_OFFICIAL} ${HEAD_SHA} jquerymobile.com | jquery.org/license */"
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
12
b6a1415d » johnbender
2012-04-27 deploy target converted using prefix args for deploy variables
13 # in build/bin/config.sh this setting will alter the variable definitions to match
14 # the changes for the deploy target in the makefile. temp solution
15 ARGS = IS_DEPLOY_TARGET=false
16 deploy: ARGS = IS_DEPLOY_TARGET=true
17
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
18 # The output folder for the finished files
19 OUTPUT = compiled
96c1647e » eddiemonge
2011-04-11 Changes so make can be run with just make nightly for the nightly builds
20
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
21 # The name of the files
22 NAME = jquery.mobile
d75be947 » johnbender
2012-02-27 alter version for rc and fix the makefile for deploy
23 BASE_NAME = jquery.mobile
d4a842db » gseguin
2012-02-29 Generate a jquery.mobile.theme.css for theme roller
24 THEME_FILENAME = jquery.mobile.theme
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
25 STRUCTURE = jquery.mobile.structure
26 deploy: NAME = jquery.mobile-${VER_OFFICIAL}
d4a842db » gseguin
2012-02-29 Generate a jquery.mobile.theme.css for theme roller
27 deploy: THEME_FILENAME = jquery.mobile.theme-${VER_OFFICIAL}
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
28 deploy: STRUCTURE = jquery.mobile.structure-${VER_OFFICIAL}
38b8ee59 » eddiemonge
2011-04-11 Changed Makefile to include nightly build script and other misc fixes
29
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
30 # The CSS theme being used
31 THEME = default
47a45f5c » jeresig
2010-10-15 Add deploy functionality to the build script.
32
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
33 # Build Targets
34 # When no build target is specified, all gets ran
e7ee7fe7 » gseguin
2012-02-02 More house cleaning
35 all: css js zip notify
38b8ee59 » eddiemonge
2011-04-11 Changed Makefile to include nightly build script and other misc fixes
36
1afbfc4d » johnbender
2012-02-15 fix for bsd/linux sed incompat
37 clean:
de923606 » gseguin
2012-02-02 House cleaning: clean target cleans, init target inits
38 @@rm -rf ${OUTPUT}
39 @@rm -rf tmp
40
1afbfc4d » johnbender
2012-02-15 fix for bsd/linux sed incompat
41 # Create the output directory.
e7ee7fe7 » gseguin
2012-02-02 More house cleaning
42 init:
de923606 » gseguin
2012-02-02 House cleaning: clean target cleans, init target inits
43 @@mkdir -p ${OUTPUT}
38b8ee59 » eddiemonge
2011-04-11 Changed Makefile to include nightly build script and other misc fixes
44
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
45 # Build and minify the CSS files
46 css: init
b6a1415d » johnbender
2012-04-27 deploy target converted using prefix args for deploy variables
47 @@${ARGS} bash build/bin/css.sh
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
48
0c5cc21a » johnbender
2012-03-20 moved css and js build targets out to shell scripts, first step in gr…
49 # Build and minify the JS files
50 js: init
b6a1415d » johnbender
2012-04-27 deploy target converted using prefix args for deploy variables
51 @@${ARGS} bash build/bin/js.sh
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
52
bf4c4c85 » gseguin
2012-02-29 docs are not using requireJS anymore so use generated js/css resultin…
53 docs: init js css
b6a1415d » johnbender
2012-04-27 deploy target converted using prefix args for deploy variables
54 @@${ARGS} bash build/bin/docs.sh
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
55
56 # Output a message saying the process is complete
57 notify: init
58 @@echo "The files have been built and are in: " $$(pwd)/${OUTPUT}
e2fa299c » jeresig
2010-10-15 Adjust sub-directory URLs before deploying the demos.
59
60
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
61 # Zip up the jQm files without docs
b1839727 » johnbender
2012-04-27 remove all zip files before compressing, add build latest and deploy …
62 zip: init css js
b6a1415d » johnbender
2012-04-27 deploy target converted using prefix args for deploy variables
63 @@${ARGS} bash build/bin/zip.sh
19c952a3 » eddiemonge
2011-05-13 For all versions of make except for deploy, the outputted scripts wil…
64
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
65 # -------------------------------------------------
66 #
67 # For jQuery Team Use Only
68 #
69 # -------------------------------------------------
e7ee7fe7 » gseguin
2012-02-02 More house cleaning
70 # NOTE the clean (which removes previous build output) has been removed to prevent a gap in service
84f60855 » johnbender
2012-01-30 remove init from latest build target
71 build_latest: css docs js zip
b6a1415d » johnbender
2012-04-27 deploy target converted using prefix args for deploy variables
72 @@${ARGS} bash build/bin/build_latest.sh
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
73
48e8b1d3 » johnbender
2012-02-16 remove the version sed, keep the defines in the lib js (not compiled)…
74 # Push the latest git version to the CDN. This is done on a post commit hook
0b858d25 » johnbender
2012-01-30 split up latest build and deploy
75 deploy_latest:
b6a1415d » johnbender
2012-04-27 deploy target converted using prefix args for deploy variables
76 @@${ARGS} bash build/bin/deploy_latest.sh
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
77
0b858d25 » johnbender
2012-01-30 split up latest build and deploy
78 # TODO target name preserved to avoid issues during refactor, latest -> deploy_latest
79 latest: build_latest deploy_latest
80
9dcc864a » johnbender
2012-03-01 push the latest build output as nightlies
81 # Push the nightly backups. This is done on a server cronjob
82 deploy_nightlies:
b6a1415d » johnbender
2012-04-27 deploy target converted using prefix args for deploy variables
83 @@${ARGS} bash build/bin/deploy_nightlies.sh
a213cfa2 » eddiemonge
2011-11-09 Complete overhaul of Make process to be cleaner, clearer and server-f…
84
85 # Deploy a finished release. This is manually done.
4a0085ba » johnbender
2012-04-13 add clean as a deploy prereq
86 deploy: clean init css js docs zip
b6a1415d » johnbender
2012-04-27 deploy target converted using prefix args for deploy variables
87 @@${ARGS} bash build/bin/deploy.sh
Something went wrong with that request. Please try again.