229
230
# make all the installers completely from scratch, using zc.buildout
230
231
# to fetch the dependencies
232
# These are files that need to be copied into the build location to boostrap
234
# Note that the path is relative to tools/win32
235
BUILDOUT_FILES := buildout.cfg \
236
buildout-templates/bin/build-installer.bat.in \
237
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)
240
@echo Make all the installers from scratch
241
@# Build everything in a separate directory, to avoid cluttering the WT
242
$(PYTHON) tools/win32/ostools.py makedir build-win32
243
@# cd to tools/win32 so that the relative paths are copied correctly
244
cd tools/win32 && $(PYTHON) ostools.py copytree $(BUILDOUT_FILES) ../../build-win32
245
@# There seems to be a bug in gf.release.bzr, It doesn't correctly update
246
@# existing release directories, so delete them manually before building
247
@# It means things may be rebuilt that don't need to be, but at least
248
@# it will be correct when they do.
249
cd build-win32 && $(PYTHON) ostools.py remove release */release
250
cd build-win32 && $(PYTHON) bootstrap.py
251
cd build-win32 && bin/buildout
252
cd build-win32 && bin/build-installer.bat $(BZR_TARGET) $(PLUGIN_TARGET)
238
255
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/
256
$(PYTHON) tools/win32/ostools.py remove build-win32
256
258
# make bzr.exe for win32 with py2exe