1#   -*-makefile-*-
2#   Master/test-tool.make
3#
4#   Copyright (C) 1997, 2001 Free Software Foundation, Inc.
5#
6#   Author:  Scott Christley <scottc@net-community.com>
7#   Author:  Nicola Pero <nicola@brainstorm.co.uk>
8#
9#   This file is part of the GNUstep Makefile Package.
10#
11#   This library is free software; you can redistribute it and/or
12#   modify it under the terms of the GNU General Public License
13#   as published by the Free Software Foundation; either version 3
14#   of the License, or (at your option) any later version.
15#
16#   You should have received a copy of the GNU General Public
17#   License along with this library; see the file COPYING.
18#   If not, write to the Free Software Foundation,
19#   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
21TEST_TOOL_NAME := $(strip $(TEST_TOOL_NAME))
22
23ifeq ($(RULES_MAKE_LOADED),)
24include $(GNUSTEP_MAKEFILES)/rules.make
25endif
26
27# Building of test tools works as in tool.make, except we don't install them.
28
29ifeq ($(GNUSTEP_MAKE_PARALLEL_BUILDING), no)
30
31internal-all:: $(GNUSTEP_OBJ_DIR) $(TEST_TOOL_NAME:=.all.test-tool.variables)
32
33else
34
35internal-all:: $(GNUSTEP_OBJ_DIR)
36	$(ECHO_NOTHING_RECURSIVE_MAKE)$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory --no-keep-going \
37	internal-master-test-tool-all \
38	GNUSTEP_BUILD_DIR="$(GNUSTEP_BUILD_DIR)" \
39	_GNUSTEP_MAKE_PARALLEL=yes$(END_ECHO_RECURSIVE_MAKE)
40
41.PHONY: internal-master-test-tool-all
42
43internal-master-test-tool-all: $(TEST_TOOL_NAME:=.all.test-tool.variables)
44
45endif
46
47internal-clean::
48
49internal-distclean::
50
51TEST_TOOLS_WITH_SUBPROJECTS = $(strip $(foreach test-tool,$(TEST_TOOL_NAME),$(patsubst %,$(test-tool),$($(test-tool)_SUBPROJECTS))))
52ifneq ($(TEST_TOOLS_WITH_SUBPROJECTS),)
53internal-clean:: $(TEST_TOOLS_WITH_SUBPROJECTS:=.clean.test-tool.subprojects)
54internal-distclean:: $(TEST_TOOLS_WITH_SUBPROJECTS:=.distclean.test-tool.subprojects)
55endif
56
57internal-strings:: $(TEST_TOOL_NAME:=.strings.test-tool.variables)
58
59$(TEST_TOOL_NAME): $(GNUSTEP_OBJ_DIR)
60	$(ECHO_NOTHING_RECURSIVE_MAKE)$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory $@.all.test-tool.variables$(END_ECHO_RECURSIVE_MAKE)
61
62internal-install::
63	@ echo Skipping installation of test tools...
64
65internal-uninstall::
66	@ echo Skipping uninstallation of test tools...
67