2
# Master/test-application.make
4
# Copyright (C) 1997, 2001, 2002 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_APP_NAME := $(strip $(TEST_APP_NAME))
23
ifeq ($(RULES_MAKE_LOADED),)
24
include $(GNUSTEP_MAKEFILES)/rules.make
27
# Building of test applications works as in application.make, except
28
# you can't install them!
30
internal-all:: $(TEST_APP_NAME:=.all.test-app.variables)
32
_PSWRAP_C_FILES = $(foreach app,$(TEST_APP_NAME),$($(app)_PSWRAP_FILES:.psw=.c))
33
_PSWRAP_H_FILES = $(foreach app,$(TEST_APP_NAME),$($(app)_PSWRAP_FILES:.psw=.h))
36
ifeq ($(GNUSTEP_FLATTENED),)
37
(cd $(GNUSTEP_BUILD_DIR); \
38
rm -rf $(GNUSTEP_OBJ_DIR_NAME) $(_PSWRAP_C_FILES) $(_PSWRAP_H_FILES) \
39
*.$(APP_EXTENSION)/$(GNUSTEP_TARGET_LDIR))
41
(cd $(GNUSTEP_BUILD_DIR); \
42
rm -rf $(GNUSTEP_OBJ_DIR_NAME) $(_PSWRAP_C_FILES) $(_PSWRAP_H_FILES) \
47
(cd $(GNUSTEP_BUILD_DIR); \
48
rm -rf shared_obj static_obj shared_debug_obj shared_profile_obj \
49
static_debug_obj static_profile_obj shared_profile_debug_obj \
50
static_profile_debug_obj *.app *.debug *.profile)
52
TEST_APPS_WITH_SUBPROJECTS = $(strip $(foreach test-app,$(TEST_APP_NAME),$(patsubst %,$(test-app),$($(test-app)_SUBPROJECTS))))
53
ifneq ($(TEST_APPS_WITH_SUBPROJECTS),)
54
internal-clean:: $(TEST_APPS_WITH_SUBPROJECTS:=.clean.test-app.subprojects)
55
internal-distclean:: $(TEST_APPS_WITH_SUBPROJECTS:=.distclean.test-app.subprojects)
58
internal-strings:: $(TEST_APP_NAME:=.strings.test-app.variables)
61
@$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
62
$@.all.test-app.variables
65
@ echo Skipping installation of test apps...
68
@ echo Skipping uninstallation of test apps...