~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: John Arbash Meinel
  • Date: 2009-07-31 19:56:19 UTC
  • mto: This revision was merged to the branch mainline in revision 4592.
  • Revision ID: john@arbash-meinel.com-20090731195619-xabumey07q2w1fge
Change the Makefile to stage things into a build directory
rather than building inside the tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
229
229
 
230
230
# make all the installers completely from scratch, using zc.buildout
231
231
# to fetch the dependencies
 
232
# These are files that need to be copied into the build location to boostrap
 
233
# the build process.
 
234
# Note that the path is relative to tools/win32
 
235
BUILDOUT_FILES := buildout.cfg \
 
236
        buildout-templates/bin/build-installer.bat.in
 
237
 
232
238
installer-all:
233
239
        @echo *** Make all the installers from scratch
234
 
        cd tools/win32 && $(PYTHON) bootstrap.py
235
 
        cd tools/win32 && bin/buildout
236
 
        cd tools/win32 && bin/build-installer.bat $(BZR_TARGET) $(PLUGIN_TARGET)
 
240
        # Build everything in a separate directory, which has an extra shared repo
 
241
        # The repo is there to make sure none of the fetches 'leak' into the local
 
242
        # shared repo
 
243
        mkdir -p build-win32
 
244
        cd tools/win32 && $(PYTHON) ostools.py copytree $(BUILDOUT_FILES) ../../build-win32
 
245
        cd build-win32 && $(PYTHON) ../tools/win32/bootstrap.py
 
246
        cd build-win32 && bin/buildout
 
247
        cd build-win32 && bin/build-installer.bat $(BZR_TARGET) $(PLUGIN_TARGET)
237
248
 
238
249
 
239
250
clean-installer-all: