~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Vincent Ladeuil
  • Date: 2017-01-17 13:48:10 UTC
  • mfrom: (6615.3.6 merges)
  • mto: This revision was merged to the branch mainline in revision 6620.
  • Revision ID: v.ladeuil+lp@free.fr-20170117134810-j9p3lidfy6pfyfsc
Merge 2.7, resolving conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2012, 2016 Canonical Ltd
 
1
# Copyright (C) 2005-2012, 2016, 2017 Canonical Ltd
2
2
#
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
454
454
.PHONY: dist check-dist-tarball
455
455
 
456
456
# build a distribution source tarball
457
 
#
458
 
# this method of copying the pyrex generated files is a bit ugly; it would be
459
 
# nicer to generate it from distutils.
460
457
dist: 
461
458
        version=`./bzr version --short` && \
462
459
        echo Building distribution of bzr $$version && \
465
462
        tarball=$$PWD/../bzr-$$version.tar.gz && \
466
463
        $(MAKE) clean && \
467
464
        $(MAKE) && \
468
 
        bzr export $$expdir && \
469
 
        cp bzrlib/*.c bzrlib/*.h $$expdir/bzrlib/. && \
470
 
        tar cfz $$tarball -C $$expbasedir bzr-$$version && \
471
 
        gpg --detach-sign $$tarball && \
 
465
        $(PYTHON) setup.py sdist -d $$PWD/.. && \
 
466
        gpg --detach-sign --armor $$tarball && \
472
467
        rm -rf $$expbasedir
473
468
 
474
469
# run all tests in a previously built tarball