view makefile @ 14:3ea6f45e78c4

compat: limited support for hg versions 1.1 - 1.5.4 Tolerate a missing pushkey module (added in hg 1.6) and various other api differences. When used with mercurial versions earlier than 1.6, the following functionality is not available: - automatic discovery of the tree configuration for remote (http, ssh) repos workaround: explicitly specify the list of subtrees when cloning, e.g., hg tclone http://hg.openjdk.java.net/jdk7/jdk7 myjdk7 corba jaxp jaxws ... - accurate splitting of quoted config items when trees.splitargs = True workaround: set trees.splitargs = False and use a separate --subtrees argument for each subtree - the tdebugkeys command
author jcoomes
date Fri, 08 Nov 2013 18:27:24 -0800
parents d25e9dd2fcb6
children
line wrap: on
line source

# 
# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# 
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
# 
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
# 
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
# 
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
# 

PWD		:= $(shell pwd)
SRC_DIR		:= ${PWD}
DST_DIR		:= ${HOME}/.hgfiles

.PHONY:  all clean install

all:
	@ echo 'Try one of the following:'
	@ echo '${MAKE} install [DST_DIR=...]'
	@ echo '${MAKE} test             # run tests with the default hg'
	@ echo '${MAKE} test-hg-versions # run tests with multiple hg versions'

clean:
	rm -f "${SRC_DIR}"/*.pyc "${SRC_DIR}"/tests/*.t.err

install:  ${DST_DIR}/trees.py

${DST_DIR}/%:  ${SRC_DIR}/%
	cp -p '$^' '$@'

HGEXT_TEST	:= tests
EXTENSION_PY	:= ${SRC_DIR}/trees.py
HG_VERSIONS	:= 1.1:

-include ${HGEXT_TEST}/hgext-test.gmk