bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: libexecdir/datadir used incorrectly


From: Alfred M. Szmidt
Subject: Re: libexecdir/datadir used incorrectly
Date: Tue, 08 Feb 2005 00:59:04 +0100

     The definition of @samp{datadir} is the same for all packages, so
     you should install your data in a subdirectory thereof.  Most
     packages install their data under
     @file{$(datadir)/package-name/}.

I don't think this is clear, i.e. can one do:

datadir := $(datadir)/package-name

Note the := to just evaluate $(datadir) once.  Which would lead to the
awkward scenario "configure --datadir=FOO" and "make datadir=FOO
install" doing different things (assuming that datadir is defined as
address@hidden@ somewhere else and that this is pulled into the
Makefile).

I personally would rather see a wording as is already used in several
places in the GCS.  Like for sbindir:

,----
| This should normally be @file{/usr/local/sbin}, but write it as
| @file{$(exec_prefix)/sbin}.  (If you are using Autoconf, write it as
| @samp{@@sbindir@@}.)
`----

Which is clear that you shouldn't do:

sbindir = @sbindir@/foo




reply via email to

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