bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] po/Makefile.in.in: PO_DEPENDS_ON_POT?


From: Christian Weisgerber
Subject: [bug-gettext] po/Makefile.in.in: PO_DEPENDS_ON_POT?
Date: Sun, 20 Sep 2015 01:15:30 +0200
User-agent: Mutt/1.5.24 (2015-08-30)

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                          address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]