woapp-localized-resource-files
# Libraries that go before the WO libraries
+ifndef $(WHICH_LIB_SCRIPT)
+ALL_WO_LIBS = \
+ $(ALL_LIB_DIRS) \
+ $(ADDITIONAL_WO_LIBS) $(AUXILIARY_WO_LIBS) $(WO_LIBS) \
+ $(ADDITIONAL_TOOL_LIBS) $(AUXILIARY_TOOL_LIBS) \
+ $(FND_LIBS) $(ADDITIONAL_OBJC_LIBS) $(AUXILIARY_OBJC_LIBS) \
+ $(OBJC_LIBS) $(SYSTEM_LIBS) $(TARGET_SYSTEM_LIBS)
+else
ALL_WO_LIBS = \
$(shell $(WHICH_LIB_SCRIPT) \
$(ALL_LIB_DIRS) \
$(OBJC_LIBS) $(SYSTEM_LIBS) $(TARGET_SYSTEM_LIBS) \
debug=$(debug) profile=$(profile) shared=$(shared) \
libext=$(LIBEXT) shared_libext=$(SHARED_LIBEXT))
-
+endif
# Don't include these definitions the first time make is invoked. This part is
# included when make is invoked the second time from the %.build rule (see
$(FND_LIBS) $(ADDITIONAL_OBJC_LIBS) $(AUXILIARY_OBJC_LIBS) \
$(OBJC_LIBS) $(SYSTEM_LIBS) $(TARGET_SYSTEM_LIBS)
#ALL_WOBUNDLE_LIBS =
+ifndef $(WHICH_LIB_SCRIPT)
+ALL_WOBUNDLE_LIBS = $(ALL_LIB_DIRS) $(TALL_WOBUNDLE_LIBS)
+else
ALL_WOBUNDLE_LIBS = \
- $(shell $(WHICH_LIB_SCRIPT) $(ALL_LIB_DIRS) $(TALL_WOBUNDLE_LIBS) \
+ $(shell $(WHICH_LIB_SCRIPT) \
+ $(ALL_LIB_DIRS) $(TALL_WOBUNDLE_LIBS) \
debug=$(debug) profile=$(profile) shared=$(shared) libext=$(LIBEXT) \
shared_libext=$(SHARED_LIBEXT))
+endif
+
+internal-wobundle-all_:: $(GNUSTEP_OBJ_DIR) \
+ build-bundle-dir \
+ build-bundle
+
+WOBUNDLE_DIR_NAME = $(GNUSTEP_INSTANCE:=$(WOBUNDLE_EXTENSION))
+WOBUNDLE_FILE = \
+ $(WOBUNDLE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR)/$(GNUSTEP_INSTANCE)
+WOBUNDLE_RESOURCE_DIRS = $(foreach d, $(RESOURCE_DIRS), $(WOBUNDLE_DIR_NAME)/$(WORSRCDIRINFIX)/$(d))
+WOBUNDLE_WEBSERVER_RESOURCE_DIRS = $(foreach d, $(WEBSERVER_RESOURCE_DIRS), $(WOBUNDLE_DIR_NAME)/Resources/WebServer/$(d))
+
+ifeq ($(strip $(LANGUAGES)),)
+ LANGUAGES="English"
+endif
+
+
+build-bundle-dir:: $(WOBUNDLE_DIR_NAME)/$(WORSRCDIRINFIX) \
+ $(WOBUNDLE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR) \
+ $(WOBUNDLE_RESOURCE_DIRS)
+
+$(WOBUNDLE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR):
+ @$(MKDIRS) $(WOBUNDLE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR)
+
+$(WOBUNDLE_RESOURCE_DIRS):
+ @$(MKDIRS) $(WOBUNDLE_RESOURCE_DIRS)
+
+build-bundle:: $(WOBUNDLE_FILE) \
+ wobundle-components \
+ wobundle-resource-files \
+ wobundle-localized-resource-files \
+ wobundle-localized-webresource-files \
+ wobundle-webresource-files
+
+
+$(WOBUNDLE_FILE) : $(OBJ_FILES_TO_LINK)
+ $(WOBUNDLE_LD) $(WOBUNDLE_LDFLAGS) \
+ $(ALL_LDFLAGS) -o $(LDOUT)$(WOBUNDLE_FILE) \
+ $(OBJ_FILES_TO_LINK) \
+ $(ALL_WOBUNDLE_LIBS)
+
+wobundle-components :: $(WOBUNDLE_DIR_NAME)
+ifneq ($(strip $(COMPONENTS)),)
+ @(echo "Linking components into the bundle wrapper..."; \
+ cd $(WOBUNDLE_DIR_NAME)/$(WORSRCDIRINFIX); \
+ for component in $(COMPONENTS); do \
+ if [ -d $(WORSRCLINKUP)/$$component ]; then \
+ $(LN_S) -f $(WORSRCLINKUP)/$$component ./;\
+ fi; \
+ done; \
internal-wobundle-all_:: $(GNUSTEP_OBJ_DIR) \
build-bundle-dir \