The po/Makefile.in.in shipped with gettext 0.19 has added

POFILESDEPS_ = $(srcdir)/$(DOMAIN).pot
POFILESDEPS_yes = $(POFILESDEPS_)
POFILESDEPS_no =
POFILESDEPS = $(POFILESDEPS_$(PO_DEPENDS_ON_POT))
[...]
$(POFILES): $(POFILESDEPS)

I wonder what the point of PO_DEPENDS_ON_POT is, since the variable
isn't defined anywhere.


Unfortunately the construct above triggers a bug in FreeBSD 9's
make(1) that causes it to error out with

  Error expanding embedded variable.

This bug is fixed in FreeBSD 10+.

As the 0.19 version of po/Makefile.in.in spreads into the wild, I
expect this problem to come up again and again.  For instance, I
ran into it with GNU cpio 2.12.


--------------------
For those curious, here's a minimal Makefile to reproduce the FreeBSD
bug.  Yes, the dependency is required:

FOO =
BAR = $(FOO$(BAZ))
all: $(BAR)

-- 
Christian "naddy" Weisgerber                          na...@mips.inka.de

Reply via email to