Update app resource copying.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@2798 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 1998-05-15 16:54:28 +00:00
parent 3553829d60
commit c312b901a5
2 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,10 @@
Fri May 15 12:00:27 1998 Adam Fedor <fedor@ultra.doc.com>
* application.make (APP_RESOURCE_DIRS): New variable.
(app-resource-dir): New target.
(app-resource-files): Include full RESOURCE_FILES path in cp
to-file.
Wed May 13 16:00:37 1998 Adam Fedor <fedor@ultra.doc.com>
* GNUmakefile.in: Create GNUSTEP_LIB_COMBO directory.

View file

@ -80,6 +80,7 @@ ALL_GUI_LIBS := \
# included when make is invoked the second time from the %.build rule (see
# rules.make).
APP_DIR_NAME = $(INTERNAL_app_NAME:=.$(APP_EXTENSION))
APP_RESOURCE_DIRS = $(foreach d, $(RESOURCE_DIRS), $(APP_DIR_NAME)/Resources/$(d))
# Support building NeXT applications
ifneq ($(OBJC_COMPILER), NeXT)
@ -140,10 +141,14 @@ $(APP_DIR_NAME)/$(GNUSTEP_TARGET_DIR)/$(LIBRARY_COMBO):
$(APP_DIR_NAME)/$(GNUSTEP_TARGET_DIR)/$(LIBRARY_COMBO)
endif
app-resource-files:: $(APP_DIR_NAME)/Resources/Info-gnustep.plist
app-resource-dir::
@$(GNUSTEP_MAKEFILES)/mkinstalldirs \
$(APP_RESOURCE_DIRS)
app-resource-files:: $(APP_DIR_NAME)/Resources/Info-gnustep.plist app-resource-dir
@(if [ "$(RESOURCE_FILES)" != "" ]; then \
echo "Copying resources into the application wrapper..."; \
cp -r $(RESOURCE_FILES) $(APP_DIR_NAME)/Resources; \
cp -r $(RESOURCE_FILES) $(APP_DIR_NAME)/Resources/$(RESOURCE_FILES); \
fi)
$(APP_DIR_NAME)/Resources/Info-gnustep.plist: $(APP_DIR_NAME)/Resources