~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-20 09:48:09 UTC
  • mfrom: (3421.2.1 cleanup_dist)
  • Revision ID: pqm@pqm.ubuntu.com-20080520094809-682f95w1gbrji5t0
(jam) make dist, etc clean up after themselves

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
dist: 
218
218
        version=`./bzr version --short` && \
219
219
        echo Building distribution of bzr $$version && \
220
 
        expbasedir=`mktemp -d` && \
 
220
        expbasedir=`mktemp -t -d tmp_bzr_dist.XXXXXXXXXX` && \
221
221
        expdir=$$expbasedir/bzr-$$version && \
222
222
        tarball=$$PWD/../bzr-$$version.tar.gz && \
223
223
        $(MAKE) clean && \
226
226
        cp bzrlib/*.c $$expdir/bzrlib/. && \
227
227
        tar cfz $$tarball -C $$expbasedir bzr-$$version && \
228
228
        gpg --detach-sign $$tarball && \
229
 
        echo $$tarball done.
 
229
        echo $$tarball done. && \
 
230
        rm -rf $$expbasedir
230
231
 
231
232
# run all tests in a previously built tarball
232
233
check-dist-tarball:
233
 
        tmpdir=`mktemp -d` && \
 
234
        tmpdir=`mktemp -t -d tmp_bzr_check_dist.XXXXXXXXXX` && \
234
235
        version=`./bzr version --short` && \
235
236
        tarball=$$PWD/../bzr-$$version.tar.gz && \
236
237
        tar Cxz $$tmpdir -f $$tarball && \
237
 
        $(MAKE) -C $$tmpdir/bzr-$$version check 
 
238
        $(MAKE) -C $$tmpdir/bzr-$$version check && \
 
239
        rm -rf $$tmpdir
238
240
 
239
241
 
240
242
# upload previously built tarball to the download directory on bazaar-vcs.org,