~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Edwin Grubbs
  • Date: 2010-03-05 21:05:54 UTC
  • mto: This revision was merged to the branch mainline in revision 10433.
  • Revision ID: edwin.grubbs@canonical.com-20100305210554-la9qeswkdd5x5z0m
Run buildout if sprite-util does not exist.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
DEVEL_WADL_FILE = $(APIDOC_DIR)/wadl-$(LPCONFIG)-devel.xml
34
34
API_INDEX = $(APIDOC_DIR)/index.html
35
35
 
 
36
# Do not add bin/buildout to this list.
 
37
# It is impossible to get buildout to tell us all the files it would
 
38
# build, since each egg's setup.py doesn't tell us that information.
 
39
BUILDOUT_BIN = \
 
40
    bin/apiindex bin/combine-css bin/fl-build-report \
 
41
    bin/fl-credential-ctl bin/fl-install-demo bin/fl-monitor-ctl \
 
42
    bin/fl-record bin/fl-run-bench bin/fl-run-test bin/googletestservice \
 
43
    bin/i18ncompile bin/i18nextract bin/i18nmergeall bin/i18nstats \
 
44
    bin/harness bin/iharness bin/ipy bin/jsbuild bin/jslint bin/jssize \
 
45
    bin/jstest bin/killservice bin/kill-test-services bin/lint.sh \
 
46
    bin/lp-windmill bin/py bin/retest bin/run bin/sprite-util \
 
47
    bin/start_librarian bin/stxdocs bin/tags bin/test bin/tracereport \
 
48
    bin/twistd bin/update-download-cache bin/windmill
 
49
 
36
50
# DO NOT ALTER : this should just build by default
37
51
default: inplace
38
52
 
116
130
 
117
131
build: compile apidoc jsbuild css_combine
118
132
 
119
 
css_combine: sprite_css
 
133
css_combine: sprite_css bin/combine-css
120
134
        ${SHHH} bin/combine-css
121
135
 
122
136
sprite_css: ${LP_BUILT_JS_ROOT}/style-3-0.css
123
137
 
124
 
${LP_BUILT_JS_ROOT}/style-3-0.css: ${ICING}/style-3-0.css.in ${ICING}/icon-sprites.positioning
 
138
${LP_BUILT_JS_ROOT}/style-3-0.css: bin/sprite-util ${ICING}/style-3-0.css.in ${ICING}/icon-sprites.positioning
125
139
        ${SHHH} bin/sprite-util create-css
126
140
 
127
141
sprite_image:
128
142
        ${SHHH} bin/sprite-util create-image
129
143
 
130
 
jsbuild_lazr:
 
144
jsbuild_lazr: bin/jsbuild
131
145
        # We absolutely do not want to include the lazr.testing module and its
132
146
        # jsTestDriver test harness modifications in the lazr.js and launchpad.js
133
147
        # roll-up files.  They fiddle with built-in functions!  See Bug 482340.
134
148
        ${SHHH} bin/jsbuild $(JSFLAGS) -b $(LAZR_BUILT_JS_ROOT) -x testing/ -c $(LAZR_BUILT_JS_ROOT)/yui
135
149
 
136
 
jsbuild: jsbuild_lazr
 
150
jsbuild: jsbuild_lazr bin/jsbuild bin/jssize
137
151
        ${SHHH} bin/jsbuild \
138
152
                $(JSFLAGS) \
139
153
                -n launchpad \
171
185
                --ez_setup-source=ez_setup.py \
172
186
                --download-base=download-cache/dist --eggs=eggs
173
187
 
174
 
$(PY): bin/buildout versions.cfg $(BUILDOUT_CFG) setup.py
 
188
# This builds bin/py and all the other bin files except bin/buildout.
 
189
$(BUILDOUT_BIN): bin/buildout versions.cfg $(BUILDOUT_CFG) setup.py
175
190
        $(SHHH) PYTHONPATH= ./bin/buildout \
176
191
                configuration:instance_name=${LPCONFIG} -c $(BUILDOUT_CFG)
177
192
 
277
292
        echo Sleeping ${MINS_TO_SHUTDOWN} mins
278
293
        sleep ${MINS_TO_SHUTDOWN}m
279
294
 
280
 
harness:
 
295
harness: bin/harness
281
296
        bin/harness
282
297
 
283
 
iharness:
 
298
iharness: bin/iharness
284
299
        bin/iharness
285
300
 
286
301
rebuildfti:
397
412
        check check_merge \
398
413
        schema default launchpad.pot check_merge_ui pull scan sync_branches\
399
414
        reload-apache hosted_branches check_db_merge check_mailman check_config\
400
 
        jsbuild clean_js buildonce_eggs
 
415
        jsbuild jsbuild_lazr clean_js buildonce_eggs \
 
416
        sprite_css sprite_image css_combine compile