Merge lp:~wallyworld/launchpad/fix-convoy-make into lp:launchpad

Proposed by Ian Booth on 2012-01-26
Status: Merged
Merged at revision: 14727
Proposed branch: lp:~wallyworld/launchpad/fix-convoy-make
Merge into: lp:launchpad
Diff against target: 34 lines (+7/-2)
1 file modified
Makefile (+7/-2)
To merge this branch: bzr merge lp:~wallyworld/launchpad/fix-convoy-make
Reviewer Review Type Date Requested Status
William Grant code 2012-01-26 Approve on 2012-01-26
Review via email: mp+90225@code.launchpad.net

Commit Message

Tweak makefile so that the combo loader build steps are a different make target.

Description of the Change

The combo loader make steps failed on production systems due to use of /var/tmp/convoy as the CONVOY_ROOT.

For now, pull out the combo loader make steps to separate make targets to allow the make to run on prod.

This branch retains the use of the local build/js/yui directory to which lib/canonical/launchpad/icing/yui is linked.

Tested locally by doing a make clean run

To post a comment you must log in.
William Grant (wgrant) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile'
2--- Makefile 2012-01-22 23:12:51 +0000
3+++ Makefile 2012-01-26 00:27:27 +0000
4@@ -186,12 +186,15 @@
5 awk 'FNR == 1 {print "/* " FILENAME " */"} {print}' $^ > $@
6 endif
7
8-jsbuild: $(PY) $(JS_OUT)
9+combobuild: jsbuild
10 mkdir -p $(CONVOY_ROOT)
11 bin/combo-rootdir $(CONVOY_ROOT)
12 rm -f $(ICING)/yui
13 ln -sf $(CONVOY_ROOT)/yui $(ICING)/yui
14
15+jsbuild: $(PY) $(JS_OUT)
16+ ln -sf ../../../../build/js/yui/yui-3.3.0 $(ICING)/yui
17+
18 eggs:
19 # Usually this is linked via link-external-sourcecode, but in
20 # deployment we create this ourselves.
21@@ -357,10 +360,12 @@
22 @echo Rebuilding FTI indexes on launchpad_dev database
23 $(PY) database/schema/fti.py -d launchpad_dev --force
24
25+clean_combo: clean_js
26+ $(RM) -r $(CONVOY_ROOT)
27+
28 clean_js:
29 $(RM) $(JS_OUT)
30 $(RM) -r $(ICING)/yui
31- $(RM) -r $(CONVOY_ROOT)
32
33 clean_buildout:
34 $(RM) -r bin