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: Sebastian Reitenbach
Subject: Re: BUNDLE_RESOURCE_FILES problem keeping subdirectories
Date: Wed, 02 Oct 2013 06:26:09 +0200
User-agent: SOGoMail 2.0.7

On Tuesday, October 1, 2013 20:22 CEST, Germán Arias <germanandre@gmx.es> wrote:

> 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)

Doh, that's easy ;) Works like a charm, instead of the $wildcard,
I just only gave the plain directory.

thanks,
Sebastian



>
> Germán.
>
>








reply via email to

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