Makefile revision 180
157N/A#
180N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
157N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
157N/A#
157N/A# This code is free software; you can redistribute it and/or modify it
157N/A# under the terms of the GNU General Public License version 2 only, as
180N/A# published by the Free Software Foundation. Oracle designates this
157N/A# particular file as subject to the "Classpath" exception as provided
180N/A# by Oracle in the LICENSE file that accompanied this code.
157N/A#
157N/A# This code is distributed in the hope that it will be useful, but WITHOUT
157N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
157N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
157N/A# version 2 for more details (a copy is included in the LICENSE file that
157N/A# accompanied this code).
157N/A#
157N/A# You should have received a copy of the GNU General Public License version
157N/A# 2 along with this work; if not, write to the Free Software Foundation,
157N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
157N/A#
180N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
180N/A# or visit www.oracle.com if you need additional information or have any
180N/A# questions.
157N/A#
157N/A
157N/A#
157N/A# Makefile to run tests from multiple sibling directories
157N/A#
157N/A
157N/A# Root of the forest that was built
157N/ATOPDIR=..
157N/A
157N/A# This makefile depends on the availability of sibling directories.
157N/ALANGTOOLS_DIR=$(TOPDIR)/langtools
157N/AJDK_DIR=$(TOPDIR)/jdk
157N/A
157N/A# Macro to run a test target in a subdir
157N/Adefine SUBDIR_TEST # subdirectory target
157N/Aif [ -d $1 ] ; then \
157N/A if [ -r $1/test/Makefile ] ; then \
157N/A echo "$(MAKE) -C $1/test $2" ; \
157N/A $(MAKE) -C $1/test $2 ; \
157N/A else \
157N/A echo "ERROR: File does not exist: $1/test/Makefile"; \
166N/A exit 1; \
157N/A fi; \
157N/Aelse \
157N/A echo "WARNING: No testing done, directory does not exist: $1"; \
157N/Afi
157N/Aendef
157N/A
157N/A# Test target list for langtools repository
163N/ALANGTOOLS_TEST_LIST = langtools_jtreg
157N/A
157N/A# Test target list for jdk repository
157N/AJDK_TEST_LIST = \
157N/A jdk_awt \
157N/A jdk_beans jdk_beans1 jdk_beans2 jdk_beans3 \
157N/A jdk_io \
157N/A jdk_lang \
157N/A jdk_management jdk_management1 jdk_management2 \
157N/A jdk_math \
157N/A jdk_misc \
157N/A jdk_net \
157N/A jdk_nio jdk_nio1 jdk_nio2 jdk_nio3 \
157N/A jdk_rmi \
157N/A jdk_security jdk_security1 jdk_security2 jdk_security3 \
157N/A jdk_swing \
157N/A jdk_text \
157N/A jdk_tools jdk_tools1 jdk_tools2 \
157N/A jdk_util
157N/A
157N/A# Default test target (everything)
157N/Aall: $(JDK_TEST_LIST) $(LANGTOOLS_TEST_LIST)
157N/A
157N/A# Test targets
157N/A$(LANGTOOLS_TEST_LIST):
163N/A @$(call SUBDIR_TEST, $(LANGTOOLS_DIR), $(subst langtools_,,$@))
157N/A$(JDK_TEST_LIST):
157N/A @$(call SUBDIR_TEST, $(JDK_DIR), $@)
157N/A
157N/Aclean:
157N/A
157N/A################################################################
157N/A
157N/A# Phony targets (e.g. these are not filenames)
157N/A.PHONY: all clean $(JDK_TEST_LIST) $(LANGTOOLS_TEST_LIST)
157N/A
157N/A################################################################
157N/A