]> err.no Git - sope/blob - gnustep-make/Master/test-tool.make
fixed inline compilation
[sope] / gnustep-make / Master / test-tool.make
1 #
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 2
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.LIB.
18 #   If not, write to the Free Software Foundation,
19 #   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
21 TEST_TOOL_NAME := $(strip $(TEST_TOOL_NAME))
22
23 ifeq ($(RULES_MAKE_LOADED),)
24 include $(GNUSTEP_MAKEFILES)/rules.make
25 endif
26
27 # Building of test tools works as in tool.make, except we don't install them.
28
29 internal-all:: $(TEST_TOOL_NAME:=.all.test-tool.variables)
30
31 internal-clean::
32         rm -rf $(GNUSTEP_OBJ_DIR)
33
34 internal-distclean::
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)
39
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)
44 endif
45
46 internal-strings:: $(TEST_TOOL_NAME:=.strings.test-tool.variables)
47
48 $(TEST_TOOL_NAME)::
49         @$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
50                  $@.all.test-tool.variables
51
52 internal-install::
53         @ echo Skipping installation of test tools...
54
55 internal-uninstall::
56         @ echo Skipping uninstallation of test tools...