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

« back to all changes in this revision

Viewing changes to gnustep-make/Master/gswapp.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/gswapp.make
 
3
#
 
4
#   Master Makefile rules to build GNUstep web based applications.
 
5
#
 
6
#   Copyright (C) 1997 Free Software Foundation, Inc.
 
7
#
 
8
#   Author:  Manuel Guesdon <mguesdon@sbuilders.com>
 
9
#   Based on application.make by Ovidiu Predescu <ovidiu@net-community.com>
 
10
#   Based on gswapp.make by Helge Hess, MDlink online service center GmbH.
 
11
#   Based on the original version by Scott Christley.
 
12
#
 
13
#   This file is part of the GNUstep Makefile Package.
 
14
#
 
15
#   This library is free software; you can redistribute it and/or
 
16
#   modify it under the terms of the GNU General Public License
 
17
#   as published by the Free Software Foundation; either version 2
 
18
#   of the License, or (at your option) any later version.
 
19
#   
 
20
#   You should have received a copy of the GNU General Public
 
21
#   License along with this library; see the file COPYING.LIB.
 
22
#   If not, write to the Free Software Foundation,
 
23
#   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
24
 
 
25
ifeq ($(RULES_MAKE_LOADED),)
 
26
include $(GNUSTEP_MAKEFILES)/rules.make
 
27
endif
 
28
 
 
29
# Determine the application directory extension
 
30
ifeq ($(profile), yes)
 
31
  GSWAPP_EXTENSION=profile
 
32
else
 
33
  ifeq ($(debug), yes)
 
34
    GSWAPP_EXTENSION=debug
 
35
  else
 
36
    GSWAPP_EXTENSION=gswa
 
37
  endif
 
38
endif
 
39
 
 
40
GSWAPP_NAME := $(strip $(GSWAPP_NAME))
 
41
 
 
42
internal-all:: $(GSWAPP_NAME:=.all.gswapp.variables)
 
43
 
 
44
internal-install:: $(GSWAPP_NAME:=.install.gswapp.variables)
 
45
 
 
46
internal-uninstall:: $(GSWAPP_NAME:=.uninstall.gswapp.variables)
 
47
 
 
48
internal-clean::
 
49
ifeq ($(GNUSTEP_FLATTENED),)
 
50
        (cd $(GNUSTEP_BUILD_DIR); \
 
51
        rm -rf $(GNUSTEP_OBJ_DIR_NAME) \
 
52
          *.$(GSWAPP_EXTENSION)/$(GNUSTEP_TARGET_LDIR))
 
53
else
 
54
        (cd $(GNUSTEP_BUILD_DIR); \
 
55
        rm -rf $(GNUSTEP_OBJ_DIR_NAME) *.$(GSWAPP_EXTENSION))
 
56
endif
 
57
 
 
58
internal-distclean::
 
59
        (cd $(GNUSTEP_BUILD_DIR); \
 
60
        rm -rf shared_obj static_obj shared_debug_obj shared_profile_obj \
 
61
          static_debug_obj static_profile_obj shared_profile_debug_obj \
 
62
          static_profile_debug_obj *.gswa *.debug *.profile)
 
63
 
 
64
GSWAPPS_WITH_SUBPROJECTS = $(strip $(foreach gswapp,$(GSWAPP_NAME),$(patsubst %,$(gswapp),$($(gswapp)_SUBPROJECTS))))
 
65
ifneq ($(GSWAPPS_WITH_SUBPROJECTS),)
 
66
internal-clean:: $(GSWAPPS_WITH_SUBPROJECTS:=.clean.gswapp.subprojects)
 
67
internal-distclean:: $(GSWAPPS_WITH_SUBPROJECTS:=.distclean.gswapp.subprojects)
 
68
endif
 
69
 
 
70
internal-strings:: $(GSWAPP_NAME:=.strings.gswapp.variables)
 
71
 
 
72
$(GSWAPP_NAME):
 
73
        @$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
 
74
                    $@.all.gswapp.variables