]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Explain how to modify src/Makefile.am.
authorBruno Haible <bruno@clisp.org>
Mon, 7 Mar 2005 20:01:37 +0000 (20:01 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:22 +0000 (12:12 +0200)
gettext-tools/doc/ChangeLog
gettext-tools/doc/gettext.texi

index 94bac266498dbc5eccaf5f8bfdb6264865731b3b..e4f2a4d943507788e8ba3da570890ce6b79e12ca 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-06  Bruno Haible  <bruno@clisp.org>
+
+       * gettext.texi (src/Makefile): Document the steps that need to be done
+       when automake is used.
+       Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
+
 2005-03-06  Bruno Haible  <bruno@clisp.org>
 
        * gettext.texi (config.h.in): Explain the constraints for this file's
index b45903b4786034e324e9503859b4eb246116eac2..6eb49b36f1e7652fba6af98227314faa64f020e7 100644 (file)
@@ -6858,7 +6858,7 @@ textdomain (@var{PACKAGE});
 @end example
 
 To make LOCALEDIR known to the program, add the following lines to
-Makefile.in:
+@file{Makefile.in}:
 
 @example
 datadir = @@datadir@@
@@ -6913,6 +6913,66 @@ dist: Makefile $(DISTFILES)
 
 @end enumerate
 
+Note that if you are using GNU @code{automake}, @file{Makefile.in} is
+automatically generated from @file{Makefile.am}, and the first three
+changes and the last change are not necessary.  The remaining needed
+@file{Makefile.am} modifications are the following:
+
+@enumerate
+@item
+To make LOCALEDIR known to the program, add the following to
+@file{Makefile.am}:
+
+@example
+<module>_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
+@end example
+
+@noindent
+for each specific module or compilation unit, or
+
+@example
+AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
+@end example
+
+for all modules and compilation units together.  Furthermore, add this
+line to define @samp{localedir}:
+
+@example
+localedir = $(datadir)/locale
+@end example
+
+@item
+To ensure that the final linking will use @code{@@LIBINTL@@} or
+@code{@@LTLIBINTL@@} as a library, add the following to
+@file{Makefile.am}:
+
+@example
+<program>_LDADD = @@LIBINTL@@
+@end example
+
+@noindent
+for each specific program, or
+
+@example
+LDADD = @@LIBINTL@@
+@end example
+
+for all programs together.  Remember that when you use @code{libtool}
+to link a program, you need to use @@LTLIBINTL@@ instead of @@LIBINTL@@
+for that program.
+
+@item
+If you have an @file{intl/} directory, whose contents is created by
+@code{gettextize}, then to ensure that it will be searched for
+C preprocessor include files in all circumstances, add something like
+this to @file{Makefile.am}:
+
+@example
+AM_CPPFLAGS = -I../intl -I$(top_srcdir)/intl
+@end example
+
+@end enumerate
+
 @node lib/gettext.h,  , src/Makefile, Adjusting Files
 @subsection @file{gettext.h} in @file{lib/}
 @cindex @file{gettext.h} file