~ubuntu-branches/ubuntu/edgy/sope/edgy

« back to all changes in this revision

Viewing changes to gnustep-make/Master/test-application.make

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Ley
  • Date: 2005-08-19 16:53:31 UTC
  • Revision ID: james.westby@ubuntu.com-20050819165331-hs683wz1osm708pw
Tags: upstream-4.4rc.2
ImportĀ upstreamĀ versionĀ 4.4rc.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
#   Master/test-application.make
 
3
#
 
4
#   Copyright (C) 1997, 2001, 2002 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
#   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
20
 
 
21
TEST_APP_NAME := $(strip $(TEST_APP_NAME))
 
22
 
 
23
ifeq ($(RULES_MAKE_LOADED),)
 
24
include $(GNUSTEP_MAKEFILES)/rules.make
 
25
endif
 
26
 
 
27
# Building of test applications works as in application.make, except
 
28
# you can't install them!
 
29
 
 
30
internal-all:: $(TEST_APP_NAME:=.all.test-app.variables)
 
31
 
 
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))
 
34
 
 
35
internal-clean::
 
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))
 
40
else
 
41
        (cd $(GNUSTEP_BUILD_DIR); \
 
42
        rm -rf $(GNUSTEP_OBJ_DIR_NAME) $(_PSWRAP_C_FILES) $(_PSWRAP_H_FILES) \
 
43
          *.$(APP_EXTENSION))
 
44
endif
 
45
 
 
46
internal-distclean::
 
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)
 
51
 
 
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)
 
56
endif
 
57
 
 
58
internal-strings:: $(TEST_APP_NAME:=.strings.test-app.variables)
 
59
 
 
60
$(TEST_APP_NAME)::
 
61
        @$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
 
62
                 $@.all.test-app.variables
 
63
 
 
64
internal-install::
 
65
        @ echo Skipping installation of test apps...
 
66
 
 
67
internal-uninstall::
 
68
        @ echo Skipping uninstallation of test apps...