2 # Master/test-tool.make
4 # Copyright (C) 1997, 2001 Free Software Foundation, Inc.
6 # Author: Scott Christley <scottc@net-community.com>
7 # Author: Nicola Pero <nicola@brainstorm.co.uk>
9 # This file is part of the GNUstep Makefile Package.
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 2
14 # of the License, or (at your option) any later version.
16 # You should have received a copy of the GNU General Public
17 # License along with this library; see the file COPYING.LIB.
18 # If not, write to the Free Software Foundation,
19 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 TEST_TOOL_NAME := $(strip $(TEST_TOOL_NAME))
23 ifeq ($(RULES_MAKE_LOADED),)
24 include $(GNUSTEP_MAKEFILES)/rules.make
27 # Building of test tools works as in tool.make, except we don't install them.
29 internal-all:: $(TEST_TOOL_NAME:=.all.test-tool.variables)
32 rm -rf $(GNUSTEP_OBJ_DIR)
35 (cd $(GNUSTEP_BUILD_DIR); \
36 rm -rf shared_obj static_obj shared_debug_obj shared_profile_obj \
37 static_debug_obj static_profile_obj shared_profile_debug_obj \
38 static_profile_debug_obj)
40 TEST_TOOLS_WITH_SUBPROJECTS = $(strip $(foreach test-tool,$(TEST_TOOL_NAME),$(patsubst %,$(test-tool),$($(test-tool)_SUBPROJECTS))))
41 ifneq ($(TEST_TOOLS_WITH_SUBPROJECTS),)
42 internal-clean:: $(TEST_TOOLS_WITH_SUBPROJECTS:=.clean.test-tool.subprojects)
43 internal-distclean:: $(TEST_TOOLS_WITH_SUBPROJECTS:=.distclean.test-tool.subprojects)
46 internal-strings:: $(TEST_TOOL_NAME:=.strings.test-tool.variables)
49 @$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
50 $@.all.test-tool.variables
53 @ echo Skipping installation of test tools...
56 @ echo Skipping uninstallation of test tools...