mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-22 22:00:49 +00:00
Only build the resource bundle if xxx_HAS_RESOURCE_BUNDLE = yes is given
in the GNUmakefile git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@14585 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1afcd73af6
commit
fc421882ab
1 changed files with 22 additions and 13 deletions
|
@ -28,23 +28,11 @@ endif
|
|||
internal-subproject-install_ \
|
||||
internal-subproject-uninstall_
|
||||
|
||||
#
|
||||
# A subproject can have resources, which it stores into the
|
||||
# Resources/Subproject directory. The project which owns us can then
|
||||
# copy recursively this directory into its own Resources directory
|
||||
# (that is done automatically if the project uses
|
||||
# Instance/Shared/bundle.make to manage its own resource bundle)
|
||||
#
|
||||
GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH = Resources/Subproject
|
||||
include $(GNUSTEP_MAKEFILES)/Instance/Shared/bundle.make
|
||||
|
||||
|
||||
#
|
||||
# Compilation targets
|
||||
#
|
||||
internal-subproject-all_:: $(GNUSTEP_OBJ_DIR) \
|
||||
$(GNUSTEP_OBJ_DIR)/$(SUBPROJECT_PRODUCT) \
|
||||
shared-instance-bundle-all
|
||||
$(GNUSTEP_OBJ_DIR)/$(SUBPROJECT_PRODUCT)
|
||||
|
||||
# We need to depend on SUBPROJECT_OBJ_FILES to account for sub-subprojects.
|
||||
$(GNUSTEP_OBJ_DIR)/$(SUBPROJECT_PRODUCT): $(OBJ_FILES_TO_LINK)
|
||||
|
@ -96,6 +84,27 @@ internal-subproject-uninstall_:: shared-instance-headers-uninstall
|
|||
|
||||
endif # no FRAMEWORK_NAME
|
||||
|
||||
|
||||
#
|
||||
# A subproject can have resources, which it stores into the
|
||||
# Resources/Subproject directory. If you want your subproject
|
||||
# to have resources, you need to put
|
||||
# xxx_HAS_RESOURCE_BUNDLE = yes
|
||||
# in your GNUmakefile. The project which owns us can then
|
||||
# copy recursively this directory into its own Resources directory
|
||||
# (that is done automatically if the project uses
|
||||
# Instance/Shared/bundle.make to manage its own resource bundle)
|
||||
#
|
||||
ifeq ($($(GNUSTEP_INSTANCE)_HAS_RESOURCE_BUNDLE), yes)
|
||||
|
||||
GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH = Resources/Subproject
|
||||
include $(GNUSTEP_MAKEFILES)/Instance/Shared/bundle.make
|
||||
|
||||
# Only build, not install
|
||||
internal-subproject-all_:: shared-instance-bundle-all
|
||||
|
||||
endif
|
||||
|
||||
## Local variables:
|
||||
## mode: makefile
|
||||
## End:
|
||||
|
|
Loading…
Reference in a new issue