CVS: Makefile improvements
Bernhard Reiter
bernhard at intevation.de
Tue Feb 22 17:19:59 CET 2005
Hi Jakson,
Am 22. Feb 2005 um 12:00:13 schrieb Jakson Aquino:
> Since some people might not have the gettext tools, I
> can change the Makefile to produce the object files
> with the extension .gmo, and, install them as .mo.
> While shipping Statist, we could include the already
> compiled .gmo files.
Yes, we would make to create the .gmo or .mo files
before packing the tarball.
A "dist" target would be perfect for this.
> >Another possible improvement would be to use one
> place
> >to configure the installation prefix
> "/usr/share/locale"
> >and document it.
>
> Well, you already solved this with the Makefile.inc.
> The ideal is that the user can choose the PREFIX and
> everything else becomes automatically set.
Yes, I solved this after writing the email.
We might want to think about calling the po/Makefile
from the src/Makefile to unify this further.
There is no real need to decend to two directories.
> Perhaps we
> still can make some small changes in the Makefiles:
>
>
> Makefile.inc
> ------------------------------------------------------
> #if you have root privileges choose one of the
> following prefixes:
> #PREFIX = /usr/local
> PREFIX = /usr
>
> #if you can't become root, uncomment the following
> line:
> #PREFIX = $$HOME
I think we should better explain this "root" non-root issues
in the documentation, as those instructions are generic and will be
known to many administrators.
> src/Makefile
> ------------------------------------------------------
> INSTALLDIR = $(PREFIX)/bin
> LOCALEDIR = $(PREFIX)/share/locale
> DOCDIR = $(PREFIX)/share/doc/statist
>
> EXTRACFLAGS = -DLOCALEDIR='"$(LOCALE)"' >> PROBLEM
> HERE! <<
Did you mean
EXTRACFLAGS = -DLOCALEDIR='"$(LOCALEDIR)"'
?
> The only problem that I got with the above lines was
> that EXTRACFLAGS = -DLOCALEDIR='"$(LOCALE)"' didn't
> work. That's, EXTRACFLAGS didn't become
> "/usr/share/locale".
Just from what I saw: Where did you define LOCALE? ;)
Bernhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/statist-list/attachments/20050222/7cee1bdf/attachment.bin
More information about the Statist-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)