1997-09-16 01:07:48 +00:00
|
|
|
#
|
|
|
|
# bundle.make
|
|
|
|
#
|
|
|
|
# Makefile rules to build GNUstep-based bundles.
|
|
|
|
#
|
|
|
|
# Copyright (C) 1997 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# Author: Scott Christley <scottc@net-community.com>
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
#
|
|
|
|
# Include in the common makefile rules
|
|
|
|
#
|
|
|
|
include $(GNUSTEP_SYSTEM_ROOT)/Makefiles/rules.make
|
|
|
|
|
|
|
|
# The name of the bundle is in the BUNDLE_NAME variable.
|
|
|
|
# The list of bundle resource file are in xxx_RESOURCES
|
|
|
|
# The list of bundle resource directories are in xxx_RESOURCE_DIRS
|
|
|
|
# where xxx is the bundle name
|
|
|
|
#
|
|
|
|
|
1997-10-14 17:31:18 +00:00
|
|
|
BUNDLE_DIR_NAME := $(BUNDLE_NAME:=$(BUNDLE_EXTENSION))
|
1997-10-01 18:46:24 +00:00
|
|
|
BUNDLE_FILE := $(BUNDLE_DIR_NAME)/$(GNUSTEP_TARGET_DIR)/$(LIBRARY_COMBO)/$(BUNDLE_NAME)
|
1997-09-30 21:54:33 +00:00
|
|
|
BUNDLE_RESOURCE_DIRS = $(foreach d,$(RESOURCE_DIRS),$(BUNDLE_DIR_NAME)/$(d))
|
|
|
|
|
|
|
|
#
|
|
|
|
# Internal targets
|
|
|
|
#
|
|
|
|
|
|
|
|
$(BUNDLE_FILE) : $(C_OBJ_FILES) $(OBJC_OBJ_FILES)
|
1997-10-25 03:53:00 +00:00
|
|
|
$(BUNDLE_LD) $(BUNDLE_LDFLAGS) $(ALL_LDFLAGS) \
|
1997-09-30 21:54:33 +00:00
|
|
|
$(LDOUT)$(BUNDLE_FILE) \
|
1997-10-01 18:46:24 +00:00
|
|
|
$(C_OBJ_FILES) $(OBJC_OBJ_FILES) \
|
|
|
|
$(ALL_LIB_DIRS) $(BUNDLE_LIBS)
|
1997-09-30 21:54:33 +00:00
|
|
|
|
1997-10-25 03:53:00 +00:00
|
|
|
before-bundle-all::
|
|
|
|
after-bundle-all::
|
|
|
|
|
1997-09-30 21:54:33 +00:00
|
|
|
#
|
|
|
|
# Compilation targets
|
|
|
|
#
|
|
|
|
internal-all:: $(GNUSTEP_OBJ_DIR) $(BUNDLE_DIR_NAME)
|
|
|
|
|
|
|
|
internal-bundle-all:: $(GNUSTEP_OBJ_DIR) build-bundle-dir build-bundle
|
|
|
|
|
|
|
|
build-bundle-dir::
|
1997-10-01 18:46:24 +00:00
|
|
|
@$(GNUSTEP_MAKEFILES)/mkinstalldirs \
|
1997-09-30 21:54:33 +00:00
|
|
|
$(BUNDLE_DIR_NAME) \
|
|
|
|
$(BUNDLE_DIR_NAME)/Resources \
|
|
|
|
$(BUNDLE_DIR_NAME)/$(GNUSTEP_TARGET_DIR)/$(LIBRARY_COMBO) \
|
|
|
|
$(BUNDLE_RESOURCE_DIRS)
|
|
|
|
|
1997-10-30 22:43:44 +00:00
|
|
|
build-bundle:: $(BUNDLE_FILE) bundle-resource-files
|
1997-09-30 21:54:33 +00:00
|
|
|
|
|
|
|
bundle-resource-files::
|
|
|
|
for f in $(RESOURCE_FILES); do \
|
|
|
|
$(INSTALL_DATA) $$f $(BUNDLE_DIR_NAME)/$$f ;\
|
|
|
|
done
|
|
|
|
|
1997-10-01 18:46:24 +00:00
|
|
|
#
|
|
|
|
# Install targets
|
|
|
|
#
|
|
|
|
internal-install:: internal-install-dir internal-install-bundle
|
|
|
|
|
|
|
|
internal-install-dir::
|
|
|
|
$(GNUSTEP_MAKEFILES)/mkinstalldirs \
|
|
|
|
$(BUNDLE_INSTALL_DIR) \
|
|
|
|
$(ADDITIONAL_INSTALL_DIRS)
|
|
|
|
|
|
|
|
internal-install-bundle::
|
|
|
|
for f in $(BUNDLE_DIR_NAME); do \
|
|
|
|
cp -dprf $$f $(BUNDLE_INSTALL_DIR) ; \
|
|
|
|
done
|
|
|
|
|
|
|
|
#
|
|
|
|
# Uninstall targets
|
|
|
|
#
|
|
|
|
internal-uninstall::
|
|
|
|
for f in $(BUNDLE_DIR_NAME); do \
|
|
|
|
rm -rf $(BUNDLE_INSTALL_DIR)/$$f ; \
|
|
|
|
done
|
|
|
|
|
1997-09-30 21:54:33 +00:00
|
|
|
#
|
|
|
|
# Cleaning targets
|
|
|
|
#
|
|
|
|
internal-clean::
|
|
|
|
for f in $(BUNDLE_DIR_NAME); do \
|
|
|
|
rm -rf $$f ; \
|
|
|
|
done
|
|
|
|
rm -rf $(GNUSTEP_OBJ_PREFIX)
|
1997-10-30 23:26:22 +00:00
|
|
|
|
|
|
|
internal-distclean::
|
|
|
|
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
|