2002-02-28 14:11:17 +00:00
|
|
|
#
|
|
|
|
# Shared/bundle.make
|
|
|
|
#
|
|
|
|
# Makefile fragment with rules to copy resource files
|
|
|
|
# into a local bundle
|
|
|
|
#
|
|
|
|
# Copyright (C) 2002 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# Author: Nicola Pero <nicola@brainstorm.co.uk>
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
#
|
|
|
|
# input variables:
|
|
|
|
#
|
2002-03-05 14:25:16 +00:00
|
|
|
|
|
|
|
#
|
2002-09-25 23:52:09 +00:00
|
|
|
# GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH : the path to the
|
2002-03-05 14:25:16 +00:00
|
|
|
# local resource bundle (this might be a subdirectory of the actual
|
|
|
|
# bundle directory). Resource files will be copied into this path.
|
|
|
|
# For example, for a normal bundle it would be
|
|
|
|
# $(BUNDLE_DIR)/Resources; for an application it would be
|
|
|
|
# $(APP_DIR)/Resources; for a library or a tool,
|
|
|
|
# Resources/$(GNUSTEP_INSTANCE). This variable is used during build,
|
|
|
|
# to copy the resources in place.
|
|
|
|
#
|
2002-09-25 23:52:09 +00:00
|
|
|
# GNUSTEP_SHARED_BUNDLE_MAIN_PATH : the path to the top
|
2002-03-05 14:25:16 +00:00
|
|
|
# level bundle directory to install. For example, for a normal
|
|
|
|
# bundle it would be $(BUNDLE_DIR); for an application it would be
|
|
|
|
# $(APP_DIR); for a library or a tool, Resources/$(GNUSTEP_INSTANCE).
|
|
|
|
#
|
2002-09-25 23:52:09 +00:00
|
|
|
# GNUSTEP_SHARED_BUNDLE_PRESERVE_LINK_PATH : the path
|
2002-03-05 14:25:16 +00:00
|
|
|
# to a symlink to preserve when installing. Normally symlinks are
|
|
|
|
# dereferenced, but we have support to preserve a single symlink.
|
|
|
|
# This is used when building bundles on MacOSX. If not set, it's
|
|
|
|
# ignored.
|
2002-02-28 14:11:17 +00:00
|
|
|
#
|
2002-06-12 13:55:43 +00:00
|
|
|
# $(GNUSTEP_INSTANCE)_RESOURCE_FILES : a list of resource files to install.
|
|
|
|
# They are recursively copied (/symlinked), so it might also include dirs.
|
2002-02-28 14:11:17 +00:00
|
|
|
#
|
2002-06-12 13:55:43 +00:00
|
|
|
# $(GNUSTEP_INSTANCE)_RESOURCE_DIRS : a list of additional resource dirs
|
2002-02-28 14:11:17 +00:00
|
|
|
# to create.
|
|
|
|
#
|
|
|
|
# $(GNUSTEP_INSTANCE)_LANGUAGES : the list of languages of localized resource
|
|
|
|
# files
|
|
|
|
#
|
2002-06-12 13:55:43 +00:00
|
|
|
# $(GNUSTEP_INSTANCE)_LOCALIZED_RESOURCE_FILES : a list of localized
|
|
|
|
# resource files to install.
|
|
|
|
#
|
|
|
|
# $(GNUSTEP_INSTANCE)_RESOURCE_DIRS : a list of additional localized
|
|
|
|
# resource dirs to create.
|
2002-02-28 14:11:17 +00:00
|
|
|
#
|
2002-03-05 14:25:16 +00:00
|
|
|
# $(GNUSTEP_INSTANCE)_COMPONENTS : a list of directories which are
|
|
|
|
# recursively copied (/locally symlinked if symlinks are available)
|
2002-06-12 13:55:43 +00:00
|
|
|
# into the resource bundle. Basically, they are currently added to
|
|
|
|
# $(GNUSTEP_INSTANCE)_RESOURCE_FILES.
|
2002-06-07 15:01:05 +00:00
|
|
|
#
|
|
|
|
# $(GNUSTEP_INSTANCE)_LOCALIZED_COMPONENTS : a list of localized
|
|
|
|
# directories which are recursively copied (/locally symlinked if
|
2002-06-12 13:55:43 +00:00
|
|
|
# symlinks are available) into the resource bundle. Currently, they
|
|
|
|
# are simply added to $(GNUSTEP_INSTANCE)_LOCALIZED_RESOURCE_FILES.
|
2002-03-05 14:25:16 +00:00
|
|
|
#
|
2002-03-05 15:50:37 +00:00
|
|
|
# $(GNUSTEP_INSTANCE)_SUBPROJECTS : the list of subprojects is used
|
|
|
|
# because the resources from each subproject are merged into the bundle
|
|
|
|
# resources (by recursively copying from LLL/Resources/Subproject into
|
2002-09-25 23:52:09 +00:00
|
|
|
# the GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH, where $(LLL) is the
|
2002-03-05 15:50:37 +00:00
|
|
|
# subproject name.
|
|
|
|
#
|
2002-02-28 14:11:17 +00:00
|
|
|
# GNUSTEP_TYPE : used when printing the message 'Copying resources into
|
|
|
|
# the $(GNUSTEP_TYPE) wrapper...'
|
|
|
|
#
|
2002-03-05 14:25:16 +00:00
|
|
|
# GSWeb related variables -
|
|
|
|
#
|
|
|
|
# $(GNUSTEP_INSTANCE)_WEBSERVER_RESOURCE_FILES : a list of resource files to
|
|
|
|
# copy from the WebServerResources directory into the WebServer
|
|
|
|
# subdirectory of the resource bundle
|
|
|
|
#
|
2002-06-12 13:55:43 +00:00
|
|
|
# $(GNUSTEP_INSTANCE)_WEBSERVER_LOCALIZED_RESOURCE_FILES : a list of
|
2002-03-05 14:25:16 +00:00
|
|
|
# localized resource files to copy from the yyy.lproj subdir of the
|
|
|
|
# WebServerResources directory into the yyy.lproj subdir of the
|
|
|
|
# WebServer subdirectory of the resource bundle - this for each
|
|
|
|
# language yyy.
|
2002-06-12 13:55:43 +00:00
|
|
|
#
|
|
|
|
# $(GNUSTEP_INSTANCE)_WEBSERVER_COMPONENTS:
|
|
|
|
# $(GNUSTEP_INSTANCE)_WEBSERVER_LOCALIZED_COMPONENTS:
|
|
|
|
# $(GNUSTEP_INSTANCE)_WEBSERVER_RESOURCE_DIRS:
|
|
|
|
# $(GNUSTEP_INSTANCE)_WEBSERVER_LOCALIZED_RESOURCE_DIRS:
|
|
|
|
#
|
2002-02-28 14:11:17 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# public targets:
|
|
|
|
#
|
|
|
|
# shared-instance-bundle-all
|
|
|
|
#
|
2002-09-25 23:52:09 +00:00
|
|
|
# $(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH): Creates the bundle
|
2002-03-05 15:50:37 +00:00
|
|
|
# resource path (invoked automatically)
|
2002-02-28 14:11:17 +00:00
|
|
|
#
|
|
|
|
|
2002-06-13 11:39:49 +00:00
|
|
|
RESOURCE_FILES = $(strip $($(GNUSTEP_INSTANCE)_RESOURCE_FILES) \
|
|
|
|
$($(GNUSTEP_INSTANCE)_COMPONENTS))
|
2002-03-05 16:02:08 +00:00
|
|
|
RESOURCE_DIRS = $(strip $($(GNUSTEP_INSTANCE)_RESOURCE_DIRS))
|
|
|
|
LANGUAGES = $(strip $($(GNUSTEP_INSTANCE)_LANGUAGES))
|
2002-06-12 13:55:43 +00:00
|
|
|
LOCALIZED_RESOURCE_FILES = \
|
2002-06-13 11:39:49 +00:00
|
|
|
$(strip $($(GNUSTEP_INSTANCE)_LOCALIZED_RESOURCE_FILES) \
|
|
|
|
$($(GNUSTEP_INSTANCE)_LOCALIZED_COMPONENTS))
|
2002-06-12 13:55:43 +00:00
|
|
|
LOCALIZED_RESOURCE_DIRS = \
|
|
|
|
$(strip $($(GNUSTEP_INSTANCE)_LOCALIZED_RESOURCE_DIRS))
|
2002-02-28 14:11:17 +00:00
|
|
|
|
2002-03-05 15:50:37 +00:00
|
|
|
# NB: Use _SUBPROJECTS, not SUBPROJECTS here as that might conflict
|
|
|
|
# with what is used in aggregate.make.
|
|
|
|
_SUBPROJECTS = $(strip $($(GNUSTEP_INSTANCE)_SUBPROJECTS))
|
|
|
|
|
2002-02-28 14:11:17 +00:00
|
|
|
.PHONY: \
|
|
|
|
shared-instance-bundle-all \
|
|
|
|
shared-instance-bundle-all-resources \
|
2002-03-05 14:25:16 +00:00
|
|
|
shared-instance-bundle-all-gsweb
|
2002-02-28 14:11:17 +00:00
|
|
|
|
|
|
|
ifneq ($(RESOURCE_DIRS),)
|
|
|
|
|
|
|
|
FULL_RESOURCE_DIRS = \
|
2002-09-25 23:52:09 +00:00
|
|
|
$(foreach d, $(RESOURCE_DIRS), $(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH)/$(d))
|
2002-02-28 14:11:17 +00:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(LANGUAGES),)
|
2002-03-05 16:02:08 +00:00
|
|
|
LANGUAGES = English
|
2002-02-28 14:11:17 +00:00
|
|
|
endif
|
|
|
|
|
2002-09-25 23:52:09 +00:00
|
|
|
$(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH):
|
2002-03-05 14:25:16 +00:00
|
|
|
$(MKDIRS) $@
|
|
|
|
|
|
|
|
$(FULL_RESOURCE_DIRS):
|
|
|
|
$(MKDIRS) $@
|
2002-02-28 14:11:17 +00:00
|
|
|
|
2002-03-05 14:25:16 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# We provide two different ways of building bundles, suited to
|
|
|
|
# different usages - normal user and developer.
|
|
|
|
#
|
|
|
|
# `Normal user` builds the bundle once. We optimize for single-build
|
|
|
|
# in this case.
|
|
|
|
#
|
|
|
|
# `Developer` builds and rebuilds the bundle a lot of times with minor
|
|
|
|
# changes each time. We optimize for efficient rebuilding in this
|
|
|
|
# case.
|
|
|
|
#
|
|
|
|
# The default behaviour is 'Normal user'. To switch to 'Developer'
|
|
|
|
# mode, set GNUSTEP_DEVELOPER=YES in the environment.
|
|
|
|
#
|
|
|
|
# TODO - implement the `Developer` mode :-)
|
|
|
|
#
|
|
|
|
|
2002-03-05 18:10:28 +00:00
|
|
|
# Please note the trick when copying subproject resources - if there
|
|
|
|
# is nothing inside $$subproject/Resources/Subproject/, in
|
|
|
|
# $$subproject/Resources/Subproject/* the * expands to itself. So we
|
|
|
|
# check if that is true before trying to copy.
|
|
|
|
|
2002-09-25 23:52:09 +00:00
|
|
|
shared-instance-bundle-all: $(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH) \
|
2002-03-05 14:25:16 +00:00
|
|
|
$(FULL_RESOURCE_DIRS) \
|
|
|
|
shared-instance-bundle-all-gsweb
|
2002-02-28 14:11:17 +00:00
|
|
|
ifneq ($(RESOURCE_FILES),)
|
2002-06-13 16:21:37 +00:00
|
|
|
$(ECHO_COPYING_RESOURCES)for f in $(RESOURCE_FILES); do \
|
2002-06-12 13:55:43 +00:00
|
|
|
if [ -f $$f -o -d $$f ]; then \
|
2002-09-25 23:52:09 +00:00
|
|
|
cp -r $$f $(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH); \
|
2002-06-12 13:55:43 +00:00
|
|
|
else \
|
|
|
|
echo "Warning: $$f not found - ignoring"; \
|
|
|
|
fi; \
|
2002-06-13 16:21:37 +00:00
|
|
|
done$(END_ECHO)
|
2002-02-28 14:11:17 +00:00
|
|
|
endif
|
2002-06-12 13:55:43 +00:00
|
|
|
ifneq ($(LOCALIZED_RESOURCE_DIRS),)
|
2002-06-13 16:21:37 +00:00
|
|
|
$(ECHO_CREATING_LOC_RESOURCE_DIRS)for l in $(LANGUAGES); do \
|
2002-02-28 14:11:17 +00:00
|
|
|
if [ -d $$l.lproj ]; then \
|
2002-09-25 23:52:09 +00:00
|
|
|
$(MKDIRS) $(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH)/$$l.lproj; \
|
2002-06-12 13:55:43 +00:00
|
|
|
for f in $(LOCALIZED_RESOURCE_DIRS); do \
|
2002-09-25 23:52:09 +00:00
|
|
|
$(MKDIRS) $(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH)/$$l.lproj/$$f; \
|
2002-02-28 14:11:17 +00:00
|
|
|
done; \
|
|
|
|
else \
|
|
|
|
echo "Warning: $$l.lproj not found - ignoring"; \
|
|
|
|
fi; \
|
2002-06-13 16:21:37 +00:00
|
|
|
done$(END_ECHO)
|
2002-02-28 14:11:17 +00:00
|
|
|
endif
|
2002-06-12 13:55:43 +00:00
|
|
|
ifneq ($(LOCALIZED_RESOURCE_FILES),)
|
2002-06-13 16:21:37 +00:00
|
|
|
$(ECHO_COPYING_LOC_RESOURCES)for l in $(LANGUAGES); do \
|
2002-06-07 15:01:05 +00:00
|
|
|
if [ -d $$l.lproj ]; then \
|
2002-09-25 23:52:09 +00:00
|
|
|
$(MKDIRS) $(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH)/$$l.lproj; \
|
2002-06-12 13:55:43 +00:00
|
|
|
for f in $(LOCALIZED_RESOURCE_FILES); do \
|
|
|
|
if [ -f $$l.lproj/$$f -o -d $$l.lproj/$$f ]; then \
|
|
|
|
cp -r $$l.lproj/$$f \
|
2002-09-25 23:52:09 +00:00
|
|
|
$(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH)/$$l.lproj; \
|
2002-06-07 15:01:05 +00:00
|
|
|
else \
|
2002-06-12 13:55:43 +00:00
|
|
|
echo "Warning: $$l.lproj/$$f not found - ignoring"; \
|
2002-06-07 15:01:05 +00:00
|
|
|
fi; \
|
|
|
|
done; \
|
|
|
|
else \
|
|
|
|
echo "Warning: $$l.lproj not found - ignoring"; \
|
|
|
|
fi; \
|
2002-06-13 16:21:37 +00:00
|
|
|
done$(END_ECHO)
|
2002-06-07 15:01:05 +00:00
|
|
|
endif
|
2002-03-05 15:50:37 +00:00
|
|
|
ifneq ($(_SUBPROJECTS),)
|
2002-06-13 16:21:37 +00:00
|
|
|
$(ECHO_COPYING_RESOURCES_FROM_SUBPROJS)for subproject in $(_SUBPROJECTS); do \
|
2002-03-05 15:50:37 +00:00
|
|
|
if [ -d $$subproject/Resources/Subproject ]; then \
|
2002-07-29 19:37:40 +00:00
|
|
|
for f in $$subproject/Resources/Subproject/*; do \
|
|
|
|
if [ $$f != $$subproject'/Resources/Subproject/*' ]; then \
|
2002-09-25 23:52:09 +00:00
|
|
|
cp -r $$f $(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH)/; \
|
2002-07-29 19:37:40 +00:00
|
|
|
fi; \
|
|
|
|
done; \
|
2002-03-05 15:50:37 +00:00
|
|
|
fi; \
|
2002-06-13 16:21:37 +00:00
|
|
|
done$(END_ECHO)
|
2002-03-05 15:50:37 +00:00
|
|
|
endif
|
2002-03-05 14:25:16 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
##
|
|
|
|
## GSWeb code
|
2002-06-12 13:55:43 +00:00
|
|
|
## A main issue here is - executing *nothing* if gsweb is not used :-)
|
2002-03-05 14:25:16 +00:00
|
|
|
##
|
|
|
|
##
|
|
|
|
|
2002-06-12 13:55:43 +00:00
|
|
|
WEBSERVER_RESOURCE_FILES = \
|
2002-06-13 11:39:49 +00:00
|
|
|
$(strip $($(GNUSTEP_INSTANCE)_WEBSERVER_RESOURCE_FILES) \
|
|
|
|
$($(GNUSTEP_INSTANCE)_WEBSERVER_COMPONENTS))
|
2002-06-12 13:55:43 +00:00
|
|
|
# For historical reasons, we recognized the old variant
|
|
|
|
# xxx_LOCALIZED_WEBSERVER_RESOURCE_FILES - but we recommend to use
|
|
|
|
# xxx_WEBSERVER_LOCALIZED_RESOURCE_FILES instead.
|
|
|
|
WEBSERVER_LOCALIZED_RESOURCE_FILES = \
|
2002-06-13 11:39:49 +00:00
|
|
|
$(strip $($(GNUSTEP_INSTANCE)_LOCALIZED_WEBSERVER_RESOURCE_FILES) \
|
|
|
|
$($(GNUSTEP_INSTANCE)_WEBSERVER_LOCALIZED_RESOURCE_FILES) \
|
|
|
|
$($(GNUSTEP_INSTANCE)_WEBSERVER_LOCALIZED_COMPONENTS))
|
2002-06-12 13:55:43 +00:00
|
|
|
WEBSERVER_RESOURCE_DIRS = \
|
|
|
|
$(strip $($(GNUSTEP_INSTANCE)_WEBSERVER_RESOURCE_DIRS))
|
|
|
|
WEBSERVER_LOCALIZED_RESOURCE_DIRS = \
|
|
|
|
$(strip $($(GNUSTEP_INSTANCE)_WEBSERVER_LOCALIZED_RESOURCE_DIRS))
|
2002-02-28 14:11:17 +00:00
|
|
|
|
2002-03-05 14:25:16 +00:00
|
|
|
|
|
|
|
ifneq ($(WEBSERVER_RESOURCE_DIRS),)
|
|
|
|
|
|
|
|
WEBSERVER_FULL_RESOURCE_DIRS = \
|
2002-09-25 23:52:09 +00:00
|
|
|
$(foreach d, $(WEBSERVER_RESOURCE_DIRS), $(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH)/WebServer/$(d))
|
2002-03-05 14:25:16 +00:00
|
|
|
|
|
|
|
$(WEBSERVER_FULL_RESOURCE_DIRS):
|
2002-02-28 14:11:17 +00:00
|
|
|
$(MKDIRS) $@
|
|
|
|
|
2002-03-05 14:25:16 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: shared-instance-bundle-all-webresources \
|
|
|
|
shared-instance-bundle-all-localized-webresources
|
|
|
|
|
|
|
|
shared-instance-bundle-all-gsweb: shared-instance-bundle-all-webresources \
|
|
|
|
shared-instance-bundle-all-localized-webresources
|
|
|
|
|
|
|
|
ifneq ($(WEBSERVER_RESOURCE_FILES),)
|
|
|
|
|
2002-09-25 23:52:09 +00:00
|
|
|
$(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH)/WebServer:
|
2002-02-28 14:11:17 +00:00
|
|
|
$(MKDIRS) $@
|
|
|
|
|
2002-03-05 14:25:16 +00:00
|
|
|
shared-instance-bundle-all-webresources: \
|
2002-09-25 23:52:09 +00:00
|
|
|
$(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH)/WebServer \
|
2002-03-05 14:25:16 +00:00
|
|
|
$(WEBSERVER_FULL_RESOURCE_DIRS)
|
2002-06-13 16:21:37 +00:00
|
|
|
$(ECHO_COPYING_WEBSERVER_RESOURCES)for f in $(WEBSERVER_RESOURCE_FILES); do \
|
2002-06-12 13:55:43 +00:00
|
|
|
if [ -f ./WebServerResources/$$f \
|
|
|
|
-o -d ./WebServerResources/$$f ]; then \
|
|
|
|
cp -r ./WebServerResources/$$f \
|
2002-09-25 23:52:09 +00:00
|
|
|
$(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH)/WebServer/$$f; \
|
2002-06-12 13:55:43 +00:00
|
|
|
else \
|
|
|
|
echo "Warning: WebServerResources/$$f not found - ignoring"; \
|
|
|
|
fi; \
|
2002-06-13 16:21:37 +00:00
|
|
|
done$(END_ECHO)
|
2002-03-05 14:25:16 +00:00
|
|
|
else
|
|
|
|
|
|
|
|
shared-instance-bundle-all-webresources:
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2002-06-12 13:55:43 +00:00
|
|
|
ifneq ($(WEBSERVER_LOCALIZED_RESOURCE_FILES)$(WEBSERVER_LOCALIZED_RESOURCE_DIRS),)
|
2002-03-05 14:25:16 +00:00
|
|
|
shared-instance-bundle-all-localized-webresources: \
|
|
|
|
$(WEBSERVER_FULL_RESOURCE_DIRS)
|
2002-06-12 13:55:43 +00:00
|
|
|
ifneq ($(WEBSERVER_LOCALIZED_RESOURCE_DIRS),)
|
2002-06-13 16:21:37 +00:00
|
|
|
$(ECHO_CREATING_WEBSERVER_LOC_RESOURCE_DIRS)for l in $(LANGUAGES); do \
|
2002-06-12 13:55:43 +00:00
|
|
|
if [ -d ./WebServerResources/$$l.lproj ]; then \
|
2002-03-05 14:25:16 +00:00
|
|
|
$(MKDIRS) \
|
2002-09-25 23:52:09 +00:00
|
|
|
$(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH)/WebServer/$$l.lproj; \
|
2002-06-12 13:55:43 +00:00
|
|
|
for f in $(WEBSERVER_LOCALIZED_RESOURCE_DIRS); do \
|
|
|
|
$(MKDIRS) \
|
2002-09-25 23:52:09 +00:00
|
|
|
$(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH)/WebServer/$$l.lproj/$$f; \
|
2002-06-12 13:55:43 +00:00
|
|
|
done; \
|
|
|
|
else \
|
|
|
|
echo "Warning: WebServer/$$l.lproj not found - ignoring"; \
|
|
|
|
fi; \
|
2002-06-13 16:21:37 +00:00
|
|
|
done$(END_ECHO)
|
2002-06-12 13:55:43 +00:00
|
|
|
endif
|
2002-06-13 16:21:37 +00:00
|
|
|
ifneq ($(WEBSERVER_LOCALIZED_RESOURCE_FILES)
|
|
|
|
$(ECHO_COPYING_WEBSERVER_LOC_RESOURCES)for l in $(LANGUAGES); do \
|
2002-06-12 13:55:43 +00:00
|
|
|
if [ -d ./WebServerResources/$$l.lproj ]; then \
|
|
|
|
$(MKDIRS) \
|
2002-09-25 23:52:09 +00:00
|
|
|
$(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH)/WebServer/$$l.lproj;\
|
2002-06-12 13:55:43 +00:00
|
|
|
for f in $(WEBSERVER_LOCALIZED_RESOURCE_FILES); do \
|
|
|
|
if [ -f ./WebServerResources/$$l.lproj/$$f \
|
|
|
|
-o -d ./WebServerResources/$$l.lproj/$$f ]; then \
|
|
|
|
cp -r ./WebServerResources/$$l.lproj/$$f \
|
2002-09-25 23:52:09 +00:00
|
|
|
$(GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH)/WebServer/$$l.lproj/$$f; \
|
2002-06-12 13:55:43 +00:00
|
|
|
else \
|
|
|
|
echo "Warning: WebServerResources/$$l.lproj/$$f not found - ignoring"; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
|
|
|
else \
|
|
|
|
echo "Warning: WebServerResources/$$l.lproj not found - ignoring"; \
|
|
|
|
fi; \
|
2002-06-13 16:21:37 +00:00
|
|
|
done$(END_ECHO)
|
|
|
|
endif
|
2002-03-05 14:25:16 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
shared-instance-bundle-all-localized-webresources:
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
2002-02-28 14:11:17 +00:00
|
|
|
## Local variables:
|
|
|
|
## mode: makefile
|
|
|
|
## End:
|