Makefile revision 87ab362234f761757d96ff1a758ab5c3bd85ed83
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
794b79e6bbc3f5db1ea6ae154d739b9f1ef1a375Tinderbox User# CDDL HEADER START
9210d8796eaf4125ac58c034f9b5ca167857a55aAutomatic Updater#
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# The contents of this file are subject to the terms of the
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# Common Development and Distribution License (the "License").
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# You may not use this file except in compliance with the License.
9210d8796eaf4125ac58c034f9b5ca167857a55aAutomatic Updater#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# or http://www.opensolaris.org/os/licensing.
9210d8796eaf4125ac58c034f9b5ca167857a55aAutomatic Updater# See the License for the specific language governing permissions
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# and limitations under the License.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# CDDL HEADER END
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
852ccdd42a71550c974111b49415204ffeca6573Automatic Updater
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
351b62535d4c4f89883bfdba025999dd32490266Evan Huntinclude $(SRC)/Makefile.master
351b62535d4c4f89883bfdba025999dd32490266Evan Huntinclude ../../Makefile.tools
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
351b62535d4c4f89883bfdba025999dd32490266Evan HuntPYSRCS = \
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt __init__.py \
ec899c963c91c16c393e067996400ae244921110Tinderbox User cdm.py
ec899c963c91c16c393e067996400ae244921110Tinderbox User
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# We deliver .pyc files specific to the python version, with the
ec899c963c91c16c393e067996400ae244921110Tinderbox User# exception of cdm.pyc, which we don't deliver at all.
ec899c963c91c16c393e067996400ae244921110Tinderbox User#
ec899c963c91c16c393e067996400ae244921110Tinderbox User# An exception to this is cdm.py, which is typically loaded using an
f5ae3cca1d2832239cc821bdef77e90c1739e66dTinderbox User# extension path in an .hgrc. This path might refer to a Python
ec899c963c91c16c393e067996400ae244921110Tinderbox User# version that's different from the one Mercurial is using. If we
ec899c963c91c16c393e067996400ae244921110Tinderbox User# delivered a cdm.pyc, differing Pythons running Mercurial could cause
ec899c963c91c16c393e067996400ae244921110Tinderbox User# it to be overwritten, causing packaging noise. Logic within cdm.py
ec899c963c91c16c393e067996400ae244921110Tinderbox User# causes modules loaded from there to be those built by the correct
ec899c963c91c16c393e067996400ae244921110Tinderbox User# version of Python.
ec899c963c91c16c393e067996400ae244921110Tinderbox User#
ec899c963c91c16c393e067996400ae244921110Tinderbox UserPYSRC2 = $(PYSRCS:cdm.py=)
ec899c963c91c16c393e067996400ae244921110Tinderbox UserPYOBJS = $(PYSRC2:%.py=%.pyc)
ec899c963c91c16c393e067996400ae244921110Tinderbox UserPYTOPDIR = $(ROOTONBLDLIB)
351b62535d4c4f89883bfdba025999dd32490266Evan HuntPYMODDIR = onbld/hgext
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
ec899c963c91c16c393e067996400ae244921110Tinderbox Userinclude ../../Makefile.python
ec899c963c91c16c393e067996400ae244921110Tinderbox User
ec899c963c91c16c393e067996400ae244921110Tinderbox Userall: $(PYVERSOBJS)
ec899c963c91c16c393e067996400ae244921110Tinderbox User
ec899c963c91c16c393e067996400ae244921110Tinderbox Userinstall: all $(ROOTPYFILES)
ec899c963c91c16c393e067996400ae244921110Tinderbox User
ec899c963c91c16c393e067996400ae244921110Tinderbox Userclean:
ec899c963c91c16c393e067996400ae244921110Tinderbox User
351b62535d4c4f89883bfdba025999dd32490266Evan Huntclobber: clean pyclobber
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt