[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Questions...
From: |
Daniel Leidert |
Subject: |
Re: Questions... |
Date: |
Mon, 12 Feb 2007 04:44:12 +0100 |
Am Sonntag, den 11.02.2007, 23:24 -0300 schrieb Matías Alejandro
Torres:
[..]
> I figure out my two questions... almost, let's say I want to copy one
> whole directory recursively
>
> Makefile.am
>
> contactsdatadir = ${prefix}/share/applications/contacts
> contactsdata_DATA = \
> themes
$(prefix)/share/applications is a directory containing .desktop files
(freedesktop.org specification) under Linux. You don't want to install
anything else than .desktop files there. Are you looking for
$(prefix)/share/contacts or $(pkgdatadir) (if you want to install
architecture-independent package-specific data, which I guess you want)
or $(prefix)/share/icons (which is a themes-directory)?
> themes is that directory but when I try to install it it throws me :
>
> test -z "/usr/local/share/applications/contacts" || mkdir -p --
> "/usr/local/share/applications/contacts"
> /usr/bin/install -c -m 644 './themes'
> '/usr/local/share/applications/contacts/themes'
> /usr/bin/install: se omite el directorio `./themes'
> make[2]: *** [install-contactsdataDATA] Error 1
>
> So what do i need to do to copy that directory recursively? or else..
> what do i need to do to create the themes directory so i can copy
> individual files?
A simple approach is:
contactsdatadir = ${pkgdatadir}/themes
contactsdata_DATA = themes/*.*
if that directory does not contain any sub-directories. An alternative
and IMO the only way to recursively copy a whole directory (_without_
using Makefiles for every sub-directory) with sub-dirs is to write your
own small piece of code and put it into the install-data-local target in
your Makefile.am. Note, that your code should respect e.g. the DESTDIR
variable. AFAIK there is no macro for recursively copying a directory
(or I never found it :)).
Regards, Daniel
- Questions..., Matías Alejandro Torres, 2007/02/11
- Re: Questions..., Matías Alejandro Torres, 2007/02/11
- Re: Questions...,
Daniel Leidert <=