234
234
# Note that the path is relative to tools/win32
235
235
BUILDOUT_FILES := buildout.cfg \
236
236
buildout-templates/bin/build-installer.bat.in \
237
ostools.py bootstrap.py
240
240
@echo Make all the installers from scratch
241
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
243
244
cd tools/win32 && $(PYTHON) ostools.py copytree $(BUILDOUT_FILES) ../../build-win32
244
cd build-win32 && $(PYTHON) ../tools/win32/bootstrap.py
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
245
251
cd build-win32 && bin/buildout
246
252
cd build-win32 && bin/build-installer.bat $(BZR_TARGET) $(PLUGIN_TARGET)
249
255
clean-installer-all:
250
$(PYTHON) tools/win32/ostools.py remove tools/win32/.installed.cfg
251
$(PYTHON) tools/win32/ostools.py remove tools/win32/bin/
252
$(PYTHON) tools/win32/ostools.py remove tools/win32/bzr/
253
$(PYTHON) tools/win32/ostools.py remove tools/win32/bzr-rebase/
254
$(PYTHON) tools/win32/ostools.py remove tools/win32/bzr-svn/
255
$(PYTHON) tools/win32/ostools.py remove tools/win32/bzrtools/
256
$(PYTHON) tools/win32/ostools.py remove tools/win32/db4/
257
$(PYTHON) tools/win32/ostools.py remove tools/win32/develop-eggs/
258
$(PYTHON) tools/win32/ostools.py remove tools/win32/libintl/
259
$(PYTHON) tools/win32/ostools.py remove tools/win32/parts/
260
$(PYTHON) tools/win32/ostools.py remove tools/win32/qbzr/
261
$(PYTHON) tools/win32/ostools.py remove tools/win32/subvertpy/
262
$(PYTHON) tools/win32/ostools.py remove tools/win32/svn/
263
$(PYTHON) tools/win32/ostools.py remove tools/win32/tbzr/
264
$(PYTHON) tools/win32/ostools.py remove tools/win32/tortoise-overlays/
265
$(PYTHON) tools/win32/ostools.py remove tools/win32/zlib/
256
$(PYTHON) tools/win32/ostools.py remove build-win32
267
258
# make bzr.exe for win32 with py2exe