1997-09-16 01:07:48 +00:00
|
|
|
#
|
|
|
|
# bundle.make
|
|
|
|
#
|
|
|
|
# Makefile rules to build GNUstep-based bundles.
|
|
|
|
#
|
2001-07-16 10:38:09 +00:00
|
|
|
# Copyright (C) 1997, 2001 Free Software Foundation, Inc.
|
1997-09-16 01:07:48 +00:00
|
|
|
#
|
|
|
|
# Author: Scott Christley <scottc@net-community.com>
|
1997-11-13 05:14:35 +00:00
|
|
|
# Author: Ovidiu Predescu <ovidiu@net-community.com>
|
2001-07-16 10:38:09 +00:00
|
|
|
# Author: Nicola Pero <nicola@brainstorm.co.uk>
|
1997-09-16 01:07:48 +00:00
|
|
|
#
|
|
|
|
# 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.
|
1997-09-30 21:54:33 +00:00
|
|
|
|
1997-11-14 22:50:41 +00:00
|
|
|
# prevent multiple inclusions
|
|
|
|
ifeq ($(BUNDLE_MAKE_LOADED),)
|
|
|
|
BUNDLE_MAKE_LOADED=yes
|
|
|
|
|
1997-09-30 21:54:33 +00:00
|
|
|
#
|
|
|
|
# Include in the common makefile rules
|
|
|
|
#
|
2001-07-10 09:45:34 +00:00
|
|
|
ifeq ($(RULES_MAKE_LOADED),)
|
1998-02-06 19:15:05 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/rules.make
|
2001-07-10 09:45:34 +00:00
|
|
|
endif
|
1997-09-30 21:54:33 +00:00
|
|
|
|
|
|
|
# The name of the bundle is in the BUNDLE_NAME variable.
|
1999-09-19 04:43:06 +00:00
|
|
|
# The list of bundle resource file are in xxx_RESOURCE_FILES
|
2001-07-16 10:38:09 +00:00
|
|
|
# The list of localized bundle resource files is in
|
|
|
|
# xxx_LOCALIZED_RESOURCE_FILES
|
2000-03-20 18:46:29 +00:00
|
|
|
# The list of languages the bundle supports is in xxx_LANGUAGES
|
1997-09-30 21:54:33 +00:00
|
|
|
# The list of bundle resource directories are in xxx_RESOURCE_DIRS
|
1998-05-28 06:56:11 +00:00
|
|
|
# The name of the principal class is xxx_PRINCIPAL_CLASS
|
2000-06-13 15:14:23 +00:00
|
|
|
# The header files are in xxx_HEADER_FILES
|
|
|
|
# The directory where the header files are located is xxx_HEADER_FILES_DIR
|
|
|
|
# The directory where to install the header files inside the library
|
|
|
|
# installation directory is xxx_HEADER_FILES_INSTALL_DIR
|
1997-09-30 21:54:33 +00:00
|
|
|
# where xxx is the bundle name
|
|
|
|
#
|
|
|
|
|
1999-02-15 09:20:19 +00:00
|
|
|
BUNDLE_NAME:=$(strip $(BUNDLE_NAME))
|
|
|
|
|
1997-11-13 05:14:35 +00:00
|
|
|
ifeq ($(INTERNAL_bundle_NAME),)
|
|
|
|
# This part is included the first time make is invoked.
|
1997-09-30 21:54:33 +00:00
|
|
|
|
1997-11-13 05:14:35 +00:00
|
|
|
internal-all:: $(BUNDLE_NAME:=.all.bundle.variables)
|
1997-09-30 21:54:33 +00:00
|
|
|
|
2001-06-21 09:46:21 +00:00
|
|
|
internal-install:: $(BUNDLE_NAME:=.install.bundle.variables)
|
1997-09-30 21:54:33 +00:00
|
|
|
|
1997-11-13 05:14:35 +00:00
|
|
|
internal-uninstall:: $(BUNDLE_NAME:=.uninstall.bundle.variables)
|
1997-10-25 03:53:00 +00:00
|
|
|
|
2001-12-10 12:26:34 +00:00
|
|
|
_PSWRAP_C_FILES = $(foreach bundle,$(BUNDLE_NAME),$($(bundle)_PSWRAP_FILES:.psw=.c))
|
|
|
|
_PSWRAP_H_FILES = $(foreach bundle,$(BUNDLE_NAME),$($(bundle)_PSWRAP_FILES:.psw=.h))
|
|
|
|
|
2001-07-16 10:38:09 +00:00
|
|
|
internal-clean:: $(BUNDLE_NAME:=.clean.bundle.subprojects)
|
2001-12-10 12:26:34 +00:00
|
|
|
rm -rf $(GNUSTEP_OBJ_DIR) $(_PSWRAP_C_FILES) $(_PSWRAP_H_FILES) \
|
|
|
|
$(addsuffix $(BUNDLE_EXTENSION),$(BUNDLE_NAME)) \
|
1997-11-13 05:14:35 +00:00
|
|
|
|
2001-07-16 10:38:09 +00:00
|
|
|
internal-distclean:: $(BUNDLE_NAME:=.distclean.bundle.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
|
1997-11-13 05:14:35 +00:00
|
|
|
|
|
|
|
$(BUNDLE_NAME):
|
1998-01-09 22:05:03 +00:00
|
|
|
@$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
|
|
|
|
$@.all.bundle.variables
|
1997-11-13 05:14:35 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
# This part gets included the second time make is invoked.
|
1997-09-30 21:54:33 +00:00
|
|
|
|
2001-07-09 14:43:33 +00:00
|
|
|
.PHONY: internal-bundle-all \
|
|
|
|
internal-bundle-clean \
|
|
|
|
internal-bundle-distclean \
|
|
|
|
internal-bundle-install \
|
|
|
|
internal-bundle-uninstall \
|
|
|
|
before-$(TARGET)-all \
|
|
|
|
after-$(TARGET)-all \
|
|
|
|
build-bundle-dir \
|
|
|
|
build-bundle \
|
|
|
|
build-macosx-bundle \
|
|
|
|
bundle-resource-files \
|
|
|
|
bundle-localized-resource-files
|
|
|
|
|
|
|
|
|
1998-01-30 23:59:17 +00:00
|
|
|
# On Solaris we don't need to specifies the libraries the bundle needs.
|
|
|
|
# How about the rest of the systems? ALL_BUNDLE_LIBS is temporary empty.
|
|
|
|
#ALL_BUNDLE_LIBS = $(ADDITIONAL_GUI_LIBS) $(AUXILIARY_GUI_LIBS) $(BACKEND_LIBS) \
|
|
|
|
$(GUI_LIBS) $(ADDITIONAL_TOOL_LIBS) $(AUXILIARY_TOOL_LIBS) \
|
|
|
|
$(FND_LIBS) $(ADDITIONAL_OBJC_LIBS) $(AUXILIARY_OBJC_LIBS) $(OBJC_LIBS) \
|
|
|
|
$(SYSTEM_LIBS) $(TARGET_SYSTEM_LIBS)
|
|
|
|
|
2000-06-13 15:14:23 +00:00
|
|
|
ALL_BUNDLE_LIBS = $(BUNDLE_LIBS)
|
|
|
|
|
|
|
|
ALL_BUNDLE_LIBS := \
|
1998-01-30 23:59:17 +00:00
|
|
|
$(shell $(WHICH_LIB_SCRIPT) $(LIB_DIRS_NO_SYSTEM) $(ALL_BUNDLE_LIBS) \
|
|
|
|
debug=$(debug) profile=$(profile) shared=$(shared) libext=$(LIBEXT) \
|
|
|
|
shared_libext=$(SHARED_LIBEXT))
|
|
|
|
|
2000-06-13 15:14:23 +00:00
|
|
|
ifeq ($(WITH_DLL),yes)
|
|
|
|
TTMP_LIBS := $(ALL_BUNDLE_LIBS)
|
|
|
|
TTMP_LIBS := $(filter -l%, $(TTMP_LIBS))
|
|
|
|
# filter all non-static libs (static libs are those ending in _ds, _s, _ps..)
|
|
|
|
TTMP_LIBS := $(filter-out -l%_ds, $(TTMP_LIBS))
|
|
|
|
TTMP_LIBS := $(filter-out -l%_s, $(TTMP_LIBS))
|
|
|
|
TTMP_LIBS := $(filter-out -l%_dps,$(TTMP_LIBS))
|
|
|
|
TTMP_LIBS := $(filter-out -l%_ps, $(TTMP_LIBS))
|
|
|
|
# strip away -l, _p and _d ..
|
|
|
|
TTMP_LIBS := $(TTMP_LIBS:-l%=%)
|
|
|
|
TTMP_LIBS := $(TTMP_LIBS:%_d=%)
|
|
|
|
TTMP_LIBS := $(TTMP_LIBS:%_p=%)
|
|
|
|
TTMP_LIBS := $(TTMP_LIBS:%_dp=%)
|
2000-06-30 22:29:10 +00:00
|
|
|
TTMP_LIBS := $(shell echo $(TTMP_LIBS)|tr '-' '_')
|
2000-06-13 15:14:23 +00:00
|
|
|
TTMP_LIBS := $(TTMP_LIBS:%=-Dlib%_ISDLL=1)
|
|
|
|
ALL_CPPFLAGS += $(TTMP_LIBS)
|
|
|
|
BUNDLE_OBJ_EXT = $(DLL_LIBEXT)
|
|
|
|
endif # WITH_DLL
|
|
|
|
|
2001-07-09 13:25:04 +00:00
|
|
|
internal-bundle-all:: before-$(TARGET)-all \
|
|
|
|
$(GNUSTEP_OBJ_DIR) \
|
|
|
|
build-bundle-dir \
|
2001-07-09 14:43:33 +00:00
|
|
|
build-bundle \
|
|
|
|
build-macosx-bundle \
|
2001-07-09 13:25:04 +00:00
|
|
|
after-$(TARGET)-all
|
1997-11-13 05:14:35 +00:00
|
|
|
|
|
|
|
before-$(TARGET)-all::
|
|
|
|
|
|
|
|
after-$(TARGET)-all::
|
|
|
|
|
|
|
|
BUNDLE_DIR_NAME := $(INTERNAL_bundle_NAME:=$(BUNDLE_EXTENSION))
|
|
|
|
BUNDLE_FILE := \
|
2001-01-03 05:28:07 +00:00
|
|
|
$(BUNDLE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR)/$(INTERNAL_bundle_NAME)$(BUNDLE_OBJ_EXT)
|
1998-03-25 19:05:30 +00:00
|
|
|
BUNDLE_RESOURCE_DIRS = $(foreach d, $(RESOURCE_DIRS), $(BUNDLE_DIR_NAME)/Resources/$(d))
|
2000-03-20 18:46:29 +00:00
|
|
|
ifeq ($(strip $(LANGUAGES)),)
|
|
|
|
override LANGUAGES="English"
|
|
|
|
endif
|
2000-02-24 22:15:38 +00:00
|
|
|
ifeq ($(BUNDLE_INSTALL_DIR),)
|
|
|
|
BUNDLE_INSTALL_DIR := $(GNUSTEP_BUNDLES)
|
|
|
|
endif
|
1997-09-30 21:54:33 +00:00
|
|
|
|
2001-07-09 13:25:04 +00:00
|
|
|
build-bundle-dir:: $(BUNDLE_DIR_NAME)/Resources \
|
|
|
|
$(BUNDLE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR) \
|
|
|
|
$(BUNDLE_RESOURCE_DIRS)
|
2001-03-14 12:16:47 +00:00
|
|
|
|
|
|
|
$(BUNDLE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR):
|
|
|
|
$(MKDIRS) $(BUNDLE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR)
|
|
|
|
|
|
|
|
$(BUNDLE_RESOURCE_DIRS):
|
|
|
|
$(MKDIRS) $(BUNDLE_RESOURCE_DIRS)
|
1997-09-30 21:54:33 +00:00
|
|
|
|
2001-07-09 14:43:33 +00:00
|
|
|
build-bundle:: $(BUNDLE_FILE) \
|
|
|
|
bundle-resource-files \
|
|
|
|
bundle-localized-resource-files
|
1997-09-30 21:54:33 +00:00
|
|
|
|
2000-06-13 15:14:23 +00:00
|
|
|
ifeq ($(WITH_DLL),yes)
|
|
|
|
|
2001-09-15 12:05:37 +00:00
|
|
|
$(BUNDLE_FILE) : $(OBJ_FILES_TO_LINK)
|
2000-06-13 15:14:23 +00:00
|
|
|
$(DLLWRAP) --driver-name $(CC) \
|
|
|
|
-o $(LDOUT)$(BUNDLE_FILE) \
|
2001-09-15 12:05:37 +00:00
|
|
|
$(OBJ_FILES_TO_LINK) \
|
2000-10-28 21:58:48 +00:00
|
|
|
$(ALL_FRAMEWORKS_DIRS) $(ALL_LIB_DIRS) $(ALL_BUNDLE_LIBS)
|
2000-06-13 15:14:23 +00:00
|
|
|
|
|
|
|
else # WITH_DLL
|
|
|
|
|
2001-09-15 12:05:37 +00:00
|
|
|
$(BUNDLE_FILE) : $(OBJ_FILES_TO_LINK)
|
1997-11-13 05:14:35 +00:00
|
|
|
$(BUNDLE_LD) $(BUNDLE_LDFLAGS) $(ALL_LDFLAGS) \
|
1999-09-15 02:41:46 +00:00
|
|
|
-o $(LDOUT)$(BUNDLE_FILE) \
|
2001-09-17 13:24:00 +00:00
|
|
|
$(OBJ_FILES_TO_LINK) \
|
2000-10-28 21:58:48 +00:00
|
|
|
$(ALL_FRAMEWORK_DIRS) $(ALL_LIB_DIRS) $(ALL_BUNDLE_LIBS)
|
1998-01-30 23:59:17 +00:00
|
|
|
|
2000-06-13 15:14:23 +00:00
|
|
|
endif # WITH_DLL
|
|
|
|
|
2001-07-09 13:25:04 +00:00
|
|
|
bundle-resource-files:: $(BUNDLE_DIR_NAME)/Resources/Info.plist \
|
|
|
|
$(BUNDLE_DIR_NAME)/Resources/Info-gnustep.plist
|
2001-07-09 14:43:33 +00:00
|
|
|
ifneq ($(strip $(RESOURCE_FILES)),)
|
|
|
|
@(echo "Copying resources into the bundle wrapper..."; \
|
|
|
|
for f in "$(RESOURCE_FILES)"; do \
|
|
|
|
cp -r $$f $(BUNDLE_DIR_NAME)/Resources; \
|
|
|
|
done)
|
|
|
|
endif
|
|
|
|
|
|
|
|
bundle-localized-resource-files:: $(BUNDLE_DIR_NAME)/Resources/Info-gnustep.plist
|
|
|
|
ifneq ($(strip $(LOCALIZED_RESOURCE_FILES)),)
|
|
|
|
@(echo "Copying localized resources into the bundle wrapper..."; \
|
|
|
|
for l in $(LANGUAGES); do \
|
2001-09-04 12:20:23 +00:00
|
|
|
if [ -d $$l.lproj ]; then \
|
2001-07-09 14:43:33 +00:00
|
|
|
$(MKDIRS) $(BUNDLE_DIR_NAME)/Resources/$$l.lproj; \
|
2001-09-04 12:20:23 +00:00
|
|
|
for f in $(LOCALIZED_RESOURCE_FILES); do \
|
|
|
|
if [ -f $$l.lproj/$$f ]; then \
|
|
|
|
cp -r $$l.lproj/$$f $(BUNDLE_DIR_NAME)/Resources/$$l.lproj; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
|
|
|
else \
|
|
|
|
echo "Warning: $$l.lproj not found - ignoring"; \
|
2001-07-09 14:43:33 +00:00
|
|
|
fi; \
|
2001-08-31 14:34:37 +00:00
|
|
|
done)
|
2001-07-09 14:43:33 +00:00
|
|
|
endif
|
2000-03-20 18:46:29 +00:00
|
|
|
|
1998-05-28 06:56:11 +00:00
|
|
|
ifeq ($(PRINCIPAL_CLASS),)
|
1999-02-19 20:51:22 +00:00
|
|
|
override PRINCIPAL_CLASS = $(INTERNAL_bundle_NAME)
|
1998-05-28 06:56:11 +00:00
|
|
|
endif
|
|
|
|
|
2000-12-13 05:05:20 +00:00
|
|
|
# MacOSX bundles
|
|
|
|
|
|
|
|
$(BUNDLE_DIR_NAME)/Contents :
|
2001-03-14 12:16:47 +00:00
|
|
|
$(MKDIRS) $@
|
2000-12-13 05:05:20 +00:00
|
|
|
|
2000-12-18 10:57:25 +00:00
|
|
|
$(BUNDLE_DIR_NAME)/Contents/Resources : $(BUNDLE_DIR_NAME)/Contents \
|
2001-07-09 13:25:04 +00:00
|
|
|
$(BUNDLE_DIR_NAME)/Resources
|
2001-05-08 22:14:15 +00:00
|
|
|
@(cd $(BUNDLE_DIR_NAME)/Contents; rm -f Resources; \
|
2001-10-16 03:38:45 +00:00
|
|
|
$(LN_S) ../Resources .)
|
2000-12-13 05:05:20 +00:00
|
|
|
|
|
|
|
$(BUNDLE_DIR_NAME)/Contents/Info.plist: $(BUNDLE_DIR_NAME)/Contents
|
|
|
|
@(echo "<?xml version='1.0' encoding='utf-8'?>";\
|
|
|
|
echo "<!DOCTYPE plist SYSTEM 'file://localhost/System/Library/DTDs/PropertyList.dtd'>";\
|
|
|
|
echo "<!-- Automatically generated, do not edit! -->";\
|
|
|
|
echo "<plist version='0.9'>";\
|
|
|
|
echo " <dict>";\
|
|
|
|
echo " <key>CFBundleExecutable</key>";\
|
2001-01-03 05:28:07 +00:00
|
|
|
echo " <string>$(GNUSTEP_TARGET_LDIR)/$(INTERNAL_bundle_NAME)${BUNDLE_OBJ_EXT}</string>";\
|
2000-12-13 05:05:20 +00:00
|
|
|
echo " <key>CFBundleInfoDictionaryVersion</key>";\
|
|
|
|
echo " <string>6.0</string>";\
|
|
|
|
echo " <key>CFBundlePackageType</key>";\
|
|
|
|
echo " <string>BNDL</string>";\
|
|
|
|
echo " <key>NSPrincipalClass</key>";\
|
|
|
|
echo " <string>$(PRINCIPAL_CLASS)</string>";\
|
|
|
|
echo " </dict>";\
|
|
|
|
echo "</plist>";\
|
|
|
|
) >$@
|
|
|
|
|
2000-12-18 10:57:25 +00:00
|
|
|
build-macosx-bundle :: $(BUNDLE_DIR_NAME)/Contents \
|
2001-07-09 13:25:04 +00:00
|
|
|
$(BUNDLE_DIR_NAME)/Contents/Resources \
|
|
|
|
$(BUNDLE_DIR_NAME)/Contents/Info.plist
|
1997-09-30 21:54:33 +00:00
|
|
|
|
2000-12-18 12:12:59 +00:00
|
|
|
# NeXTstep bundles
|
|
|
|
$(BUNDLE_DIR_NAME)/Resources/Info.plist: $(BUNDLE_DIR_NAME)/Resources
|
|
|
|
@(echo "{"; echo ' NOTE = "Automatically generated, do not edit!";'; \
|
2001-01-03 05:28:07 +00:00
|
|
|
echo " NSExecutable = \"$(GNUSTEP_TARGET_LDIR)/$(INTERNAL_bundle_NAME)${BUNDLE_OBJ_EXT}\";"; \
|
2000-12-18 12:12:59 +00:00
|
|
|
if [ "$(MAIN_MODEL_FILE)" = "" ]; then \
|
|
|
|
echo " NSMainNibFile = \"\";"; \
|
|
|
|
else \
|
2001-03-18 18:40:13 +00:00
|
|
|
echo " NSMainNibFile = \"$(subst .gmodel,,$(subst .gorm,,$(subst .nib,,$(MAIN_MODEL_FILE))))\";"; \
|
2000-12-18 12:12:59 +00:00
|
|
|
fi; \
|
|
|
|
echo " NSPrincipalClass = \"$(PRINCIPAL_CLASS)\";"; \
|
|
|
|
echo "}") >$@
|
|
|
|
|
2000-06-13 15:14:23 +00:00
|
|
|
# GNUstep bundles
|
|
|
|
$(BUNDLE_DIR_NAME)/Resources/Info-gnustep.plist: $(BUNDLE_DIR_NAME)/Resources
|
|
|
|
@(echo "{"; echo ' NOTE = "Automatically generated, do not edit!";'; \
|
|
|
|
echo " NSExecutable = \"$(INTERNAL_bundle_NAME)${BUNDLE_OBJ_EXT}\";"; \
|
|
|
|
if [ "$(MAIN_MODEL_FILE)" = "" ]; then \
|
|
|
|
echo " NSMainNibFile = \"\";"; \
|
|
|
|
else \
|
2001-03-18 18:40:13 +00:00
|
|
|
echo " NSMainNibFile = \"$(subst .gmodel,,$(subst .gorm,,$(subst .nib,,$(MAIN_MODEL_FILE))))\";"; \
|
2000-06-13 15:14:23 +00:00
|
|
|
fi; \
|
|
|
|
echo " NSPrincipalClass = \"$(PRINCIPAL_CLASS)\";"; \
|
|
|
|
echo "}") >$@
|
2001-11-03 23:33:00 +00:00
|
|
|
@if [ -r "$(INTERNAL_bundle_NAME)Info.plist" ]; then \
|
|
|
|
plmerge $@ $(INTERNAL_bundle_NAME)Info.plist; \
|
|
|
|
fi
|
2000-02-24 22:15:38 +00:00
|
|
|
|
2001-12-06 11:29:27 +00:00
|
|
|
# Comment on the tar options used in the rule below -
|
|
|
|
|
2001-12-17 11:24:40 +00:00
|
|
|
# The h option to tar makes sure the bundle can contain symbolic links
|
|
|
|
# to external files (for example templates), and when you install the
|
|
|
|
# bundle, the symbolic links are replaced with the actual files. The
|
|
|
|
# X option is used because otherwise the -h option would dereference
|
|
|
|
# the Contents/Resources-->Resources symbolic link, and install the
|
|
|
|
# Resources directory twice. Instead, we exclude the symbolic link
|
|
|
|
# from the tar file, then rebuild the link by hand in the installation
|
|
|
|
# directory.
|
|
|
|
|
|
|
|
# Because of compatibility issues with older versions of GNU tar (not
|
|
|
|
# to speak of non-GNU tars), we use the X option rather than the
|
|
|
|
# --exclude= option. The X option requires as argument a file listing
|
|
|
|
# files to exclude. We create a temporary file for this, then remove
|
|
|
|
# it immediately afterwards.
|
|
|
|
|
|
|
|
# When rebuilding the link, just as yet another compatibility safety
|
|
|
|
# measure, we need to make sure that we can manage the case that tar
|
|
|
|
# was actually broken and didn't honour the X option (and/or the h
|
|
|
|
# option). To manage this, we simply do not build the link if
|
2001-12-11 01:05:17 +00:00
|
|
|
# Resources already exists and is a directory (either a real one or a
|
|
|
|
# symbolic link, we don't care).
|
|
|
|
|
2000-06-13 15:14:23 +00:00
|
|
|
internal-bundle-install:: $(BUNDLE_INSTALL_DIR)
|
2001-07-09 14:43:33 +00:00
|
|
|
ifneq ($(HEADER_FILES_INSTALL_DIR),)
|
2001-12-12 15:27:57 +00:00
|
|
|
$(MKINSTALLDIRS) $(GNUSTEP_HEADERS)/$(HEADER_FILES_INSTALL_DIR);
|
2001-07-09 14:43:33 +00:00
|
|
|
ifneq ($(HEADER_FILES),)
|
|
|
|
for file in $(HEADER_FILES) __done; do \
|
|
|
|
if [ $$file != __done ]; then \
|
|
|
|
$(INSTALL_DATA) $(HEADER_FILES_DIR)/$$file \
|
2001-12-12 13:20:53 +00:00
|
|
|
$(GNUSTEP_HEADERS)/$(HEADER_FILES_INSTALL_DIR)/$$file ; \
|
2000-06-13 15:14:23 +00:00
|
|
|
fi; \
|
2001-07-09 14:43:33 +00:00
|
|
|
done;
|
|
|
|
endif
|
|
|
|
endif
|
2001-12-17 11:24:40 +00:00
|
|
|
rm -f .tmp.gnustep.exclude; \
|
|
|
|
echo "$(BUNDLE_DIR_NAME)/Contents/Resources" > .tmp.gnustep.exclude;\
|
2001-07-09 14:43:33 +00:00
|
|
|
rm -rf $(BUNDLE_INSTALL_DIR)/$(BUNDLE_DIR_NAME); \
|
2001-12-17 11:24:40 +00:00
|
|
|
$(TAR) chfX - .tmp.gnustep.exclude $(BUNDLE_DIR_NAME) \
|
2001-12-06 11:29:27 +00:00
|
|
|
| (cd $(BUNDLE_INSTALL_DIR); $(TAR) xf -); \
|
2001-12-17 11:24:40 +00:00
|
|
|
rm -f .tmp.gnustep.exclude; \
|
2001-12-06 11:29:27 +00:00
|
|
|
(cd $(BUNDLE_INSTALL_DIR)/$(BUNDLE_DIR_NAME)/Contents; \
|
2001-12-11 01:05:17 +00:00
|
|
|
if [ ! -d Resources ]; then \
|
|
|
|
rm -f Resources; $(LN_S) ../Resources .; \
|
|
|
|
fi;)
|
2001-12-12 15:27:57 +00:00
|
|
|
ifneq ($(CHOWN_TO),)
|
|
|
|
$(CHOWN) -R $(CHOWN_TO) $(BUNDLE_INSTALL_DIR)/$(BUNDLE_DIR_NAME)
|
|
|
|
endif
|
2001-12-14 14:51:27 +00:00
|
|
|
ifeq ($(strip),yes)
|
|
|
|
$(STRIP) $(BUNDLE_INSTALL_DIR)/$(BUNDLE_FILE)
|
|
|
|
endif
|
2000-02-19 00:40:47 +00:00
|
|
|
|
2001-03-14 12:16:47 +00:00
|
|
|
$(BUNDLE_DIR_NAME)/Resources:
|
|
|
|
$(MKDIRS) $@
|
|
|
|
|
|
|
|
$(BUNDLE_INSTALL_DIR):
|
2001-12-12 15:27:57 +00:00
|
|
|
$(MKINSTALLDIRS) $@
|
1998-01-30 23:59:17 +00:00
|
|
|
|
|
|
|
internal-bundle-uninstall::
|
2001-07-09 14:43:33 +00:00
|
|
|
ifneq ($(HEADER_FILES),)
|
|
|
|
for file in $(HEADER_FILES) __done; do \
|
|
|
|
if [ $$file != __done ]; then \
|
2001-12-12 13:20:53 +00:00
|
|
|
rm -rf $(GNUSTEP_HEADERS)/$(HEADER_FILES_INSTALL_DIR)/$$file ; \
|
2001-07-09 14:43:33 +00:00
|
|
|
fi; \
|
|
|
|
done;
|
|
|
|
endif
|
2000-06-13 15:14:23 +00:00
|
|
|
rm -rf $(BUNDLE_INSTALL_DIR)/$(BUNDLE_DIR_NAME)
|
1997-10-01 18:46:24 +00:00
|
|
|
|
1997-11-13 05:14:35 +00:00
|
|
|
endif
|
|
|
|
|
1997-11-14 22:50:41 +00:00
|
|
|
endif
|
|
|
|
# bundle.make loaded
|
1998-05-28 06:56:11 +00:00
|
|
|
|
|
|
|
## Local variables:
|
|
|
|
## mode: makefile
|
|
|
|
## End:
|