~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Francis J. Lacoste
  • Date: 2011-07-08 20:31:48 UTC
  • mfrom: (13397 devel)
  • mto: This revision was merged to the branch mainline in revision 13501.
  • Revision ID: francis.lacoste@canonical.com-20110708203148-mzcn7o91cn2nm830
Merge devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
ICING=lib/canonical/launchpad/icing
20
20
LP_BUILT_JS_ROOT=${ICING}/build
21
 
LAZR_BUILT_JS_ROOT=lazr-js/build
22
21
 
23
22
ifeq ($(LPCONFIG), development)
24
23
JS_BUILD := raw
27
26
endif
28
27
 
29
28
JS_YUI := $(shell utilities/yui-deps.py $(JS_BUILD:raw=))
30
 
JS_LAZR := $(LAZR_BUILT_JS_ROOT)/lazr.js
31
29
JS_OTHER := $(wildcard lib/canonical/launchpad/javascript/*/*.js)
32
 
JS_LP := $(shell find lib/lp/*/javascript ! -path '*/tests/*' ! -path '*/app/javascript/lazr/*' -name '*.js' ! -name '.*.js' )
33
 
JS_ALL := $(JS_YUI) $(JS_LAZR) $(JS_OTHER) $(JS_LP)
 
30
JS_LP := $(shell find lib/lp/*/javascript ! -path '*/tests/*' -name '*.js' ! -name '.*.js' )
 
31
JS_ALL := $(JS_YUI) $(JS_OTHER) $(JS_LP)
34
32
JS_OUT := $(LP_BUILT_JS_ROOT)/launchpad.js
35
33
 
36
34
MINS_TO_SHUTDOWN=15
40
38
BZR_VERSION_INFO = bzr-version-info.py
41
39
 
42
40
APIDOC_DIR = lib/canonical/launchpad/apidoc
43
 
WADL_TEMPLATE = $(APIDOC_DIR).tmp/wadl-$(LPCONFIG)-%(version)s.xml
 
41
APIDOC_TMPDIR = $(APIDOC_DIR).tmp/
44
42
API_INDEX = $(APIDOC_DIR)/index.html
45
43
 
46
44
# Do not add bin/buildout to this list.
78
76
        rm -rf $(APIDOC_DIR) $(APIDOC_DIR).tmp
79
77
        mkdir -p $(APIDOC_DIR).tmp
80
78
        LPCONFIG=$(LPCONFIG) $(PY) ./utilities/create-lp-wadl-and-apidoc.py \
81
 
            --force "$(WADL_TEMPLATE)"
82
 
        mv $(APIDOC_DIR).tmp $(APIDOC_DIR)
 
79
            --force "$(APIDOC_TMPDIR)"
 
80
        mv $(APIDOC_TMPDIR) $(APIDOC_DIR)
83
81
 
84
82
apidoc: compile $(API_INDEX)
85
83
 
178
176
                ${ICING}/sprite.css.in
179
177
        ${SHHH} bin/sprite-util create-image
180
178
 
181
 
# We absolutely do not want to include the lazr.testing module and
182
 
# its jsTestDriver test harness modifications in the lazr.js and
183
 
# launchpad.js roll-up files.  They fiddle with built-in functions!
184
 
# See Bug 482340.
185
 
jsbuild_minify: bin/jsbuild
 
179
jsbuild_widget_css: bin/jsbuild
186
180
        ${SHHH} bin/jsbuild \
187
 
            --builddir $(LAZR_BUILT_JS_ROOT) \
188
 
            --exclude testing/ --filetype $(JS_BUILD)
 
181
            --srcdir lib/lp/app/javascript \
 
182
            --builddir $(LP_BUILT_JS_ROOT)
189
183
 
190
 
$(JS_YUI) $(JS_LAZR): jsbuild_minify
 
184
$(JS_LP): jsbuild_widget_css
191
185
 
192
186
$(JS_OUT): $(JS_ALL)
193
187
ifeq ($(JS_BUILD), min)
484
478
        test_build test_inplace pagetests check schema default \
485
479
        launchpad.pot pull_branches scan_branches sync_branches \
486
480
        reload-apache hosted_branches check_mailman check_config \
487
 
        jsbuild jsbuild_minify clean_js clean_buildout buildonce_eggs \
 
481
        jsbuild jsbuild_widget_css clean_js clean_buildout buildonce_eggs \
488
482
        build_eggs sprite_css sprite_image css_combine compile \
489
 
        check_schema pydoctor clean_logs 
 
483
        check_schema pydoctor clean_logs