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