1
# Copyright (C) 2005, 2006, 2007, 2008 Canonical Ltd
1
# Copyright (C) 2005, 2006, 2007, 2008, 2009 Canonical Ltd
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
229
228
# make all the installers completely from scratch, using zc.buildout
230
229
# to fetch the dependencies
230
# These are files that need to be copied into the build location to boostrap
232
# Note that the path is relative to tools/win32
233
BUILDOUT_FILES := buildout.cfg \
234
buildout-templates/bin/build-installer.bat.in \
235
ostools.py bootstrap.py
232
@echo *** Make all the installers from scratch
233
cd tools/win32 && $(PYTHON) bootstrap.py
234
cd tools/win32 && bin/buildout
235
cd tools/win32 && bin/build-installer.bat $(BZR_TARGET) $(PLUGIN_TARGET)
238
@echo Make all the installers from scratch
239
@# Build everything in a separate directory, to avoid cluttering the WT
240
$(PYTHON) tools/win32/ostools.py makedir build-win32
241
@# cd to tools/win32 so that the relative paths are copied correctly
242
cd tools/win32 && $(PYTHON) ostools.py copytree $(BUILDOUT_FILES) ../../build-win32
243
@# There seems to be a bug in gf.release.bzr, It doesn't correctly update
244
@# existing release directories, so delete them manually before building
245
@# It means things may be rebuilt that don't need to be, but at least
246
@# it will be correct when they do.
247
cd build-win32 && $(PYTHON) ostools.py remove release */release
248
cd build-win32 && $(PYTHON) bootstrap.py
249
cd build-win32 && bin/buildout
250
cd build-win32 && bin/build-installer.bat $(BZR_TARGET) $(PLUGIN_TARGET)
238
253
clean-installer-all:
239
$(PYTHON) tools/win32/ostools.py remove tools/win32/.installed.cfg
240
$(PYTHON) tools/win32/ostools.py remove tools/win32/bin/
241
$(PYTHON) tools/win32/ostools.py remove tools/win32/bzr/
242
$(PYTHON) tools/win32/ostools.py remove tools/win32/bzr-rebase/
243
$(PYTHON) tools/win32/ostools.py remove tools/win32/bzr-svn/
244
$(PYTHON) tools/win32/ostools.py remove tools/win32/bzrtools/
245
$(PYTHON) tools/win32/ostools.py remove tools/win32/db4/
246
$(PYTHON) tools/win32/ostools.py remove tools/win32/develop-eggs/
247
$(PYTHON) tools/win32/ostools.py remove tools/win32/libintl/
248
$(PYTHON) tools/win32/ostools.py remove tools/win32/parts/
249
$(PYTHON) tools/win32/ostools.py remove tools/win32/qbzr/
250
$(PYTHON) tools/win32/ostools.py remove tools/win32/subvertpy/
251
$(PYTHON) tools/win32/ostools.py remove tools/win32/svn/
252
$(PYTHON) tools/win32/ostools.py remove tools/win32/tbzr/
253
$(PYTHON) tools/win32/ostools.py remove tools/win32/tortoise-overlays/
254
$(PYTHON) tools/win32/ostools.py remove tools/win32/zlib/
254
$(PYTHON) tools/win32/ostools.py remove build-win32
256
256
# make bzr.exe for win32 with py2exe