Go to the first, previous, next, last section, table of contents.
Some of the modifications made in the main `Makefile.in' will also be needed in the `Makefile.in' from your package sources, which we assume here to be in the `src/' subdirectory. Here are all the modifications needed in `src/Makefile.in':
PACKAGE = @PACKAGE@ VERSION = @VERSION@
top_srcdir
gets defined. This will serve for cpp
include files. Just add
the line:
top_srcdir = @top_srcdir@
subdir
as `src', later
allowing for almost uniform `dist:' goals in all your
`Makefile.in'. At list, the `dist:' goal below assume that
you used:
subdir = src
@INTLLIBS@
as
a library. An easy way to achieve this is to manage that it gets into
LIBS
, like this:
LIBS = @INTLLIBS@ @LIBS@In most packages internationalized with GNU
gettext
, one will
find a directory `lib/' in which a library containing some helper
functions will be build. (You need at least the few functions which the
GNU gettext
Library itself needs.) However some of the functions
in the `lib/' also give messages to the user which of course should be
translated, too. Taking care of this it is not enough to place the support
library (say `libsupport.a') just between the @INTLLIBS@
and @LIBS@
in the above example. Instead one has to write this:
LIBS = ../lib/libsupport.a @INTLLIBS@ ../lib/libsupport.a @LIBS@
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist: Makefile $(DISTFILES) for file in $(DISTFILES); do \ ln $$file $(distdir) 2>/dev/null || cp -p $$file $(distdir); \ done
Go to the first, previous, next, last section, table of contents.