]> err.no Git - sope/blob - gnustep-make/Master/test-library.make
fixed mapping of 'method' attribute
[sope] / gnustep-make / Master / test-library.make
1 #
2 #   Master/test-library.make
3 #
4 #   Master Makefile rules for dejagnu/GNUstep based testing
5 #
6 #   Copyright (C) 1997 Free Software Foundation, Inc.
7 #
8 #   Author:  Scott Christley <scottc@net-community.com>
9 #   Author:  Ovidiu Predescu <ovidiu@net-community.com>
10 #
11 #   This file is part of the GNUstep Makefile Package.
12 #
13 #   This library is free software; you can redistribute it and/or
14 #   modify it under the terms of the GNU General Public License
15 #   as published by the Free Software Foundation; either version 2
16 #   of the License, or (at your option) any later version.
17 #   
18 #   You should have received a copy of the GNU General Public
19 #   License along with this library; see the file COPYING.LIB.
20 #   If not, write to the Free Software Foundation,
21 #   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23
24 TEST_LIBRARY_NAME := $(strip $(TEST_LIBRARY_NAME))
25
26 ifeq ($(RULES_MAKE_LOADED),)
27 include $(GNUSTEP_MAKEFILES)/rules.make
28 endif
29
30 internal-all:: $(TEST_LIBRARY_NAME:=.all.test-lib.variables)
31
32 internal-install:: $(TEST_LIBRARY_NAME:=.install.test-lib.variables)
33
34 internal-uninstall:: $(TEST_LIBRARY_NAME:=.uninstall.test-lib.variables)
35
36 _PSWRAP_C_FILES = $(foreach lib,$(TEST_LIBRARY_NAME),$($(lib)_PSWRAP_FILES:.psw=.c))
37 _PSWRAP_H_FILES = $(foreach lib,$(TEST_LIBRARY_NAME),$($(lib)_PSWRAP_FILES:.psw=.h))
38
39 internal-clean::
40         (cd $(GNUSTEP_BUILD_DIR); \
41         rm -rf $(GNUSTEP_OBJ_DIR_NAME) $(_PSWRAP_C_FILES) $(_PSWRAP_H_FILES))
42
43 internal-distclean::
44         (cd $(GNUSTEP_BUILD_DIR); \
45         rm -rf shared_obj static_obj shared_debug_obj shared_profile_obj \
46           static_debug_obj static_profile_obj shared_profile_debug_obj \
47           static_profile_debug_obj)
48
49 TEST_LIBRARIES_WITH_SUBPROJECTS = $(strip $(foreach test-library,$(TEST_LIBRARY_NAME),$(patsubst %,$(test-library),$($(test-library)_SUBPROJECTS))))
50 ifneq ($(TEST_LIBRARIES_WITH_SUBPROJECTS),)
51 internal-clean:: $(TEST_LIBRARIES_WITH_SUBPROJECTS:=.clean.test-library.subprojects)
52 internal-distclean:: $(TEST_LIBRARIES_WITH_SUBPROJECTS:=.distclean.test-library.subprojects)
53 endif
54
55 internal-check:: $(TEST_LIBRARY_NAME:=.check.test-lib.variables)
56
57 internal-strings:: $(TEST_LIBRARY_NAME:=.strings.test-lib.variables)
58
59 $(TEST_LIBRARY_NAME)::
60         @$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
61                 $@.all.test-lib.variables