~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: John Arbash Meinel
  • Date: 2008-10-30 00:55:00 UTC
  • mto: (3815.2.5 prepare-1.9)
  • mto: This revision was merged to the branch mainline in revision 3811.
  • Revision ID: john@arbash-meinel.com-20081030005500-r5cej1cxflqhs3io
Switch so that we are using a simple timestamp as the first action.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
### Core Stuff ###
22
22
 
23
23
PYTHON=python
 
24
PYTHON_BUILDFLAGS=
24
25
 
25
26
.PHONY: all clean extensions pyflakes api-docs
26
27
 
28
29
 
29
30
extensions:
30
31
        @echo "building extension modules."
31
 
        $(PYTHON) setup.py build_ext -i
 
32
        $(PYTHON) setup.py build_ext -i $(PYTHON_BUILDFLAGS)
32
33
 
33
34
check: docs extensions
34
35
        $(PYTHON) -Werror -O ./bzr selftest -1v $(tests)
170
171
# make bzr.exe for win32 with py2exe
171
172
exe:
172
173
        @echo *** Make bzr.exe
173
 
        $(PYTHON) setup.py build_ext -i -f
 
174
        $(PYTHON) setup.py build_ext -i -f $(PYTHON_BUILDFLAGS)
174
175
        $(PYTHON) setup.py py2exe > py2exe.log
175
176
        $(PYTHON) tools/win32/ostools.py copytodir tools/win32/start_bzr.bat win32_bzr.exe
176
177
        $(PYTHON) tools/win32/ostools.py copytodir tools/win32/bazaar.url win32_bzr.exe
178
179
# win32 installer for bzr.exe
179
180
installer: exe copy-docs
180
181
        @echo *** Make windows installer
181
 
        cog.py -d -o tools/win32/bzr.iss tools/win32/bzr.iss.cog
 
182
        $(PYTHON) tools/win32/run_script.py cog.py -d -o tools/win32/bzr.iss tools/win32/bzr.iss.cog
182
183
        iscc /Q tools/win32/bzr.iss
183
184
 
184
185
# win32 Python's distutils-based installer
208
209
 
209
210
.PHONY: dist dist-upload-escudero check-dist-tarball
210
211
 
211
 
# build a distribution tarball.
 
212
# build a distribution tarball and zip file.
212
213
#
213
214
# this method of copying the pyrex generated files is a bit ugly; it would be
214
215
# nicer to generate it from distutils.
215
 
#
216
 
# these are a bit ubuntu-specific.
217
216
dist: 
218
217
        version=`./bzr version --short` && \
219
218
        echo Building distribution of bzr $$version && \
220
219
        expbasedir=`mktemp -t -d tmp_bzr_dist.XXXXXXXXXX` && \
221
220
        expdir=$$expbasedir/bzr-$$version && \
222
221
        tarball=$$PWD/../bzr-$$version.tar.gz && \
 
222
        zipball=$$PWD/../bzr-$$version.zip && \
223
223
        $(MAKE) clean && \
224
224
        $(MAKE) && \
225
225
        bzr export $$expdir && \
226
226
        cp bzrlib/*.c $$expdir/bzrlib/. && \
227
227
        tar cfz $$tarball -C $$expbasedir bzr-$$version && \
 
228
        (cd $$expbasedir && zip -r $$zipball bzr-$$version) && \
228
229
        gpg --detach-sign $$tarball && \
229
 
        echo $$tarball done. && \
 
230
        gpg --detach-sign $$zipball && \
230
231
        rm -rf $$expbasedir
231
232
 
232
233
# run all tests in a previously built tarball
244
245
dist-upload-escudero:
245
246
        version=`./bzr version --short` && \
246
247
        tarball=../bzr-$$version.tar.gz && \
247
 
        scp $$tarball $$tarball.sig \
 
248
        zipball=../bzr-$$version.zip && \
 
249
        scp $$zipball $$zipball.sig $$tarball $$tarball.sig \
248
250
            escudero.ubuntu.com:/srv/bazaar.canonical.com/www/releases/src \
249
251
                && \
250
252
        echo verifying over http... && \
 
253
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.zip \
 
254
                | diff -s - $$zipball && \
 
255
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.zip.sig \
 
256
                | diff -s - $$zipball.sig 
251
257
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.tar.gz \
252
258
                | diff -s - $$tarball && \
253
259
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.tar.gz.sig \