mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-22 05:40:48 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@12648 72102866-910b-0410-8b05-ffd578937521
74 lines
2.2 KiB
Makefile
74 lines
2.2 KiB
Makefile
#
|
|
# Master/gswapp.make
|
|
#
|
|
# Master Makefile rules to build GNUstep web based applications.
|
|
#
|
|
# Copyright (C) 1997 Free Software Foundation, Inc.
|
|
#
|
|
# Author: Manuel Guesdon <mguesdon@sbuilders.com>
|
|
# Based on application.make by Ovidiu Predescu <ovidiu@net-community.com>
|
|
# Based on gswapp.make by Helge Hess, MDlink online service center GmbH.
|
|
# Based on the original version by Scott Christley.
|
|
#
|
|
# This file is part of the GNUstep Makefile Package.
|
|
#
|
|
# This library is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation; either version 2
|
|
# of the License, or (at your option) any later version.
|
|
#
|
|
# You should have received a copy of the GNU General Public
|
|
# License along with this library; see the file COPYING.LIB.
|
|
# If not, write to the Free Software Foundation,
|
|
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
ifeq ($(RULES_MAKE_LOADED),)
|
|
include $(GNUSTEP_MAKEFILES)/rules.make
|
|
endif
|
|
|
|
# Determine the application directory extension
|
|
ifeq ($(profile), yes)
|
|
GSWAPP_EXTENSION=profile
|
|
else
|
|
ifeq ($(debug), yes)
|
|
GSWAPP_EXTENSION=debug
|
|
else
|
|
GSWAPP_EXTENSION=gswa
|
|
endif
|
|
endif
|
|
|
|
GSWAPP_NAME := $(strip $(GSWAPP_NAME))
|
|
|
|
internal-all:: $(GSWAPP_NAME:=.all.gswapp.variables)
|
|
|
|
internal-install:: $(GSWAPP_NAME:=.install.gswapp.variables)
|
|
|
|
internal-uninstall:: $(GSWAPP_NAME:=.uninstall.gswapp.variables)
|
|
|
|
internal-clean:: $(GSWAPP_NAME:=.clean.gswapp.subprojects)
|
|
rm -rf $(GNUSTEP_OBJ_DIR)
|
|
ifeq ($(OBJC_COMPILER), NeXT)
|
|
rm -f *.iconheader
|
|
for f in *.$(GSWAPP_EXTENSION); do \
|
|
rm -f $$f/`basename $$f .$(GSWAPP_EXTENSION)`; \
|
|
done
|
|
else
|
|
ifeq ($(GNUSTEP_FLATTENED),)
|
|
rm -rf *.$(GSWAPP_EXTENSION)/$(GNUSTEP_TARGET_LDIR)
|
|
else
|
|
rm -rf *.$(GSWAPP_EXTENSION)
|
|
endif
|
|
endif
|
|
|
|
internal-distclean:: $(GSWAPP_NAME:=.distclean.gswapp.subprojects)
|
|
rm -rf shared_obj static_obj shared_debug_obj shared_profile_obj \
|
|
static_debug_obj static_profile_obj shared_profile_debug_obj \
|
|
static_profile_debug_obj *.gswa *.debug *.profile *.iconheader
|
|
|
|
$(GSWAPP_NAME):
|
|
@$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
|
|
$@.all.gswapp.variables
|
|
|
|
## Local variables:
|
|
## mode: makefile
|
|
## End:
|