4
# Master Makefile rules to build GNUstep web based applications.
6
# Copyright (C) 1997 Free Software Foundation, Inc.
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.
13
# This file is part of the GNUstep Makefile Package.
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.
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.
25
ifeq ($(RULES_MAKE_LOADED),)
26
include $(GNUSTEP_MAKEFILES)/rules.make
29
# Determine the application directory extension
30
ifeq ($(profile), yes)
31
GSWAPP_EXTENSION=profile
34
GSWAPP_EXTENSION=debug
40
GSWAPP_NAME := $(strip $(GSWAPP_NAME))
42
internal-all:: $(GSWAPP_NAME:=.all.gswapp.variables)
44
internal-install:: $(GSWAPP_NAME:=.install.gswapp.variables)
46
internal-uninstall:: $(GSWAPP_NAME:=.uninstall.gswapp.variables)
49
ifeq ($(GNUSTEP_FLATTENED),)
50
(cd $(GNUSTEP_BUILD_DIR); \
51
rm -rf $(GNUSTEP_OBJ_DIR_NAME) \
52
*.$(GSWAPP_EXTENSION)/$(GNUSTEP_TARGET_LDIR))
54
(cd $(GNUSTEP_BUILD_DIR); \
55
rm -rf $(GNUSTEP_OBJ_DIR_NAME) *.$(GSWAPP_EXTENSION))
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)
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)
70
internal-strings:: $(GSWAPP_NAME:=.strings.gswapp.variables)
73
@$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
74
$@.all.gswapp.variables