cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# CDDL HEADER START
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# The contents of this file are subject to the terms of the
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# Common Development and Distribution License (the "License").
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# You may not use this file except in compliance with the License.
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# or http://www.opensolaris.org/os/licensing.
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# See the License for the specific language governing permissions
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# and limitations under the License.
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# When distributing Covered Code, include this CDDL HEADER in each
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# If applicable, add the following below this CDDL HEADER, with the
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# fields enclosed by brackets "[]" replaced with your own identifying
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# information: Portions Copyright [yyyy] [name of copyright owner]
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# CDDL HEADER END
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelsoninclude $(SRC)/Makefile.master
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelsoninclude ../../Makefile.tools
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard LowePYSRCS = \
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson __init__.py \
b4218d7f125d6b4ccd06bcb3545c78987e5bfbc8Mark J. Nelson cdm.py
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe#
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe# We deliver .pyc files specific to the python version, with the
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe# exception of cdm.pyc, which we don't deliver at all.
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe#
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe# An exception to this is cdm.py, which is typically loaded using an
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe# extension path in an .hgrc. This path might refer to a Python
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe# version that's different from the one Mercurial is using. If we
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe# delivered a cdm.pyc, differing Pythons running Mercurial could cause
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe# it to be overwritten, causing packaging noise. Logic within cdm.py
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe# causes modules loaded from there to be those built by the correct
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe# version of Python.
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe#
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard LowePYSRC2 = $(PYSRCS:cdm.py=)
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard LowePYOBJS = $(PYSRC2:%.py=%.pyc)
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard LowePYTOPDIR = $(ROOTONBLDLIB)
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard LowePYMODDIR = onbld/hgext
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Loweinclude ../../Makefile.python
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Loweall: $(PYVERSOBJS)
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Loweinstall: all $(ROOTPYFILES)
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelsonclean:
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Loweclobber: clean pyclobber