1# -*-makefile-*- 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 3 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. 22# If not, write to the Free Software Foundation, 23# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 24 25ifeq ($(RULES_MAKE_LOADED),) 26include $(GNUSTEP_MAKEFILES)/rules.make 27endif 28 29# Determine the application directory extension 30GSWAPP_EXTENSION=gswa 31 32GSWAPP_NAME := $(strip $(GSWAPP_NAME)) 33 34ifeq ($(GNUSTEP_MAKE_PARALLEL_BUILDING), no) 35 36internal-all:: $(GNUSTEP_OBJ_DIR) $(GSWAPP_NAME:=.all.gswapp.variables) 37 38else 39 40internal-all:: $(GNUSTEP_OBJ_DIR) 41 $(ECHO_NOTHING_RECURSIVE_MAKE)$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory --no-keep-going \ 42 internal-master-gswapp-all \ 43 GNUSTEP_BUILD_DIR="$(GNUSTEP_BUILD_DIR)" \ 44 _GNUSTEP_MAKE_PARALLEL=yes$(END_ECHO_RECURSIVE_MAKE) 45 46.PHONY: internal-master-gswapp-all 47 48internal-master-gswapp-all: $(GSWAPP_NAME:=.all.gswapp.variables) 49 50endif 51 52internal-install:: $(GSWAPP_NAME:=.install.gswapp.variables) 53 54internal-uninstall:: $(GSWAPP_NAME:=.uninstall.gswapp.variables) 55 56internal-clean:: 57ifeq ($(GNUSTEP_IS_FLATTENED), no) 58 (cd $(GNUSTEP_BUILD_DIR); \ 59 rm -rf *.$(GSWAPP_EXTENSION)/$(GNUSTEP_TARGET_LDIR)) 60else 61 (cd $(GNUSTEP_BUILD_DIR); \ 62 rm -rf *.$(GSWAPP_EXTENSION)) 63endif 64 65internal-distclean:: 66ifeq ($(GNUSTEP_IS_FLATTENED), no) 67 (cd $(GNUSTEP_BUILD_DIR); \ 68 rm -rf *.$(GSWAPP_EXTENSION)) 69endif 70 71GSWAPPS_WITH_SUBPROJECTS = $(strip $(foreach gswapp,$(GSWAPP_NAME),$(patsubst %,$(gswapp),$($(gswapp)_SUBPROJECTS)))) 72ifneq ($(GSWAPPS_WITH_SUBPROJECTS),) 73internal-clean:: $(GSWAPPS_WITH_SUBPROJECTS:=.clean.gswapp.subprojects) 74internal-distclean:: $(GSWAPPS_WITH_SUBPROJECTS:=.distclean.gswapp.subprojects) 75endif 76 77internal-strings:: $(GSWAPP_NAME:=.strings.gswapp.variables) 78 79$(GSWAPP_NAME): $(GNUSTEP_OBJ_DIR) 80 $(ECHO_NOTHING_RECURSIVE_MAKE)$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory $@.all.gswapp.variables$(END_ECHO_RECURSIVE_MAKE) 81