~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Guilherme Salgado
  • Date: 2010-04-28 18:25:11 UTC
  • mto: This revision was merged to the branch mainline in revision 10969.
  • Revision ID: salgado@canonical.com-20100428182511-3m56yrajzkwts7jl
Get rid of PYTHON_VERSION from all Makefiles and use a customized pygettextpo which uses the default system python instead of what's defined in PYTHON_VERSION

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# This file modified from Zope3/Makefile
2
2
# Licensed under the ZPL, (c) Zope Corporation and contributors.
3
3
 
4
 
# XXX: Nasty hack to make sure the default python is used when
5
 
# building/running.  Specially useful for source deps like pygettextpo.
6
 
PYTHON_VERSION:=$(shell python -c 'import sys; print ".".join(["%d" % n for n in sys.version_info[:2]])')
7
 
PYTHON=python${PYTHON_VERSION}
 
4
PYTHON=python
8
5
WD:=$(shell pwd)
9
6
PY=$(WD)/bin/py
10
7
PYTHONPATH:=$(WD)/lib:$(WD)/lib/mailman:${PYTHONPATH}
196
193
 
197
194
compile: $(PY) $(BZR_VERSION_INFO)
198
195
        ${SHHH} $(MAKE) -C sourcecode build PYTHON=${PYTHON} \
199
 
            PYTHON_VERSION=${PYTHON_VERSION} LPCONFIG=${LPCONFIG}
 
196
            LPCONFIG=${LPCONFIG}
200
197
        ${SHHH} LPCONFIG=${LPCONFIG} ${PY} -t buildmailman.py
201
198
 
202
199
test_build: build