~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to Makefile

[r=benji][bug=809786] Refactor some DistroSeries JavaScript and add a
        declarative approach for running YUI tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
JS_BUILD := min
26
26
endif
27
27
 
28
 
JS_SOURCE_PATHS = -path './lib/lp/*/javascript/*' ! -path '*/tests/*' \
29
 
    ! -path '*/testing/*' ! -path './lib/lp/services/*'
 
28
define JS_LP_PATHS
 
29
lib -path 'lib/lp/*/javascript/*' \
 
30
! -path '*/tests/*' ! -path '*/testing/*' \
 
31
! -path 'lib/lp/services/*'
 
32
endef
 
33
 
30
34
JS_YUI := $(shell utilities/yui-deps.py $(JS_BUILD:raw=))
31
35
JS_OTHER := $(wildcard lib/canonical/launchpad/javascript/*/*.js)
32
 
JS_LP := $(shell find $(JS_SOURCE_PATHS) -name '*.js' ! -name '.*.js' )
 
36
JS_LP := $(shell find $(JS_LP_PATHS) -name '*.js')
33
37
JS_ALL := $(JS_YUI) $(JS_OTHER) $(JS_LP)
34
38
JS_OUT := $(LP_BUILT_JS_ROOT)/launchpad.js
35
39
 
164
168
 
165
169
jsbuild_widget_css: bin/jsbuild
166
170
        ${SHHH} bin/jsbuild \
167
 
            --srcdir lib/lp/app/javascript \
 
171
            --srcdir lib/lp/app/javascript \
168
172
            --builddir $(LP_BUILT_JS_ROOT)
169
173
 
170
174
$(JS_LP): jsbuild_widget_css
425
429
copy-apache-config:
426
430
        # We insert the absolute path to the branch-rewrite script
427
431
        # into the Apache config as we copy the file into position.
428
 
        sed -e 's,%BRANCH_REWRITE%,$(shell pwd)/scripts/branch-rewrite.py,' configs/development/local-launchpad-apache > /etc/apache2/sites-available/local-launchpad
 
432
        sed -e 's,%BRANCH_REWRITE%,$(shell pwd)/scripts/branch-rewrite.py,' \
 
433
                configs/development/local-launchpad-apache > \
 
434
                /etc/apache2/sites-available/local-launchpad
429
435
        cp configs/development/local-vostok-apache \
430
436
                /etc/apache2/sites-available/local-vostok
431
437
        touch /var/tmp/bazaar.launchpad.dev/rewrite.log