* On Sun, Mar 21, 2010 at 10:27 AM, Ralf Wildenhues wrote:
> > noinst_PROGRAMS = unimain
> > unimain_SOURCES = unimain.c
> >
> > unidata.tab.c: unimain$(EXEEXT) /usr/share/unicode/UnicodeData.txt
> >       ./unimain$(EXEEXT) $< > $@
>
> BTW, execution of built programs like this makes your package unsuitable
> for cross-compilation.  Just so you're aware of that.

Assuming unidata.tab.c is a C-code table containing the
information from UnicodeData.txt, I think it could be better to
generate it by some shell code (maybe inside the Makefile.am,
saving a tool) or to use perl (for the price of adding perl to
the build dependencies) or, if UnicodeData rarely changes, add
unidata.tab.c to the package and have some `maintainer only'
helper target to build it (with unidata.tab.c as distributed
source file). People who don't care about unidata.tab.c can build
the package even without UnicodeData.txt (if this makes any
sense, I don't know what this is for of course :))

oki,

Steffen


Reply via email to