discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BUNDLE_RESOURCE_FILES problem keeping subdirectories


From: Germán Arias
Subject: Re: BUNDLE_RESOURCE_FILES problem keeping subdirectories
Date: Tue, 01 Oct 2013 12:22:01 -0600

El mar, 01-10-2013 a las 19:32 +0200, Sebastian Reitenbach escribió:
> I played a bit with Germans silver theme, in order to 
> get it installing properly into the system Themes directory.
> 
> I added the following to the GNUmakefile:
> 
> $(BUNDLE_NAME)_RESOURCE_FILES = Resources/Silver.tiff \
>                               $(wildcard Resources/*.clr) \
>                               $(wildcard Resources/ThemeImages/*.tiff) \
>                               $(wildcard Resources/ThemeTiles/*.tiff)
> 
> It picks up all the files from the Resources directory, and also
> from its subdirectories, but it places everything plain into
> the Resources directory in the installation path. 
> 
> i.e. Resources/ThemImages/blah.tiff goes into
> /usr/local/lib/GNUstep/Themes/Silver.theme/Resources/blah.tiff
> instead of the wanted
> /usr/local/lib/GNUstep/Themes/Silver.theme/Resources/ThemeImages/blah.tiff
> 
> is there an easy way to keep the directory structure for the resources
> without overriding the install target or adding a post-install target?
> 
> Sebastian
> 

You only need add the directories, not the files inside these. For
example:

$(BUNDLE_NAME)_RESOURCE_FILES = Resources/Silver.tiff \
                                $(wildcard Resources/*.clr) \
                                $(wildcard Resources/ThemeImages) \
                                $(wildcard Resources/ThemeTiles)

Germán.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]