1cdf0c1d5Smjnelson# 2cdf0c1d5Smjnelson# CDDL HEADER START 3cdf0c1d5Smjnelson# 4cdf0c1d5Smjnelson# The contents of this file are subject to the terms of the 5cdf0c1d5Smjnelson# Common Development and Distribution License (the "License"). 6cdf0c1d5Smjnelson# You may not use this file except in compliance with the License. 7cdf0c1d5Smjnelson# 8cdf0c1d5Smjnelson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9cdf0c1d5Smjnelson# or http://www.opensolaris.org/os/licensing. 10cdf0c1d5Smjnelson# See the License for the specific language governing permissions 11cdf0c1d5Smjnelson# and limitations under the License. 12cdf0c1d5Smjnelson# 13cdf0c1d5Smjnelson# When distributing Covered Code, include this CDDL HEADER in each 14cdf0c1d5Smjnelson# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15cdf0c1d5Smjnelson# If applicable, add the following below this CDDL HEADER, with the 16cdf0c1d5Smjnelson# fields enclosed by brackets "[]" replaced with your own identifying 17cdf0c1d5Smjnelson# information: Portions Copyright [yyyy] [name of copyright owner] 18cdf0c1d5Smjnelson# 19cdf0c1d5Smjnelson# CDDL HEADER END 20cdf0c1d5Smjnelson# 21cdf0c1d5Smjnelson 22cdf0c1d5Smjnelson# 23*87ab3622SRichard Lowe# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. 24cdf0c1d5Smjnelson# 25cdf0c1d5Smjnelson 26cdf0c1d5Smjnelsoninclude $(SRC)/Makefile.master 27cdf0c1d5Smjnelsoninclude ../../Makefile.tools 28cdf0c1d5Smjnelson 29cdf0c1d5SmjnelsonPYSRCS = \ 30cdf0c1d5Smjnelson __init__.py \ 31b4218d7fSMark J. Nelson cdm.py 32cdf0c1d5Smjnelson 33*87ab3622SRichard Lowe# 34*87ab3622SRichard Lowe# We deliver .pyc files specific to the python version, with the 35*87ab3622SRichard Lowe# exception of cdm.pyc, which we don't deliver at all. 36*87ab3622SRichard Lowe# 37*87ab3622SRichard Lowe# An exception to this is cdm.py, which is typically loaded using an 38*87ab3622SRichard Lowe# extension path in an .hgrc. This path might refer to a Python 39*87ab3622SRichard Lowe# version that's different from the one Mercurial is using. If we 40*87ab3622SRichard Lowe# delivered a cdm.pyc, differing Pythons running Mercurial could cause 41*87ab3622SRichard Lowe# it to be overwritten, causing packaging noise. Logic within cdm.py 42*87ab3622SRichard Lowe# causes modules loaded from there to be those built by the correct 43*87ab3622SRichard Lowe# version of Python. 44*87ab3622SRichard Lowe# 45*87ab3622SRichard LowePYSRC2 = $(PYSRCS:cdm.py=) 46*87ab3622SRichard LowePYOBJS = $(PYSRC2:%.py=%.pyc) 47*87ab3622SRichard LowePYTOPDIR = $(ROOTONBLDLIB) 48*87ab3622SRichard LowePYMODDIR = onbld/hgext 49cdf0c1d5Smjnelson 50*87ab3622SRichard Loweinclude ../../Makefile.python 51cdf0c1d5Smjnelson 52*87ab3622SRichard Loweall: $(PYVERSOBJS) 53cdf0c1d5Smjnelson 54*87ab3622SRichard Loweinstall: all $(ROOTPYFILES) 55cdf0c1d5Smjnelson 56cdf0c1d5Smjnelsonclean: 57cdf0c1d5Smjnelson 58*87ab3622SRichard Loweclobber: clean pyclobber 59