summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-04-28 10:19:13 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-04-28 10:19:13 -0400
commitad0e554991e7788d5af830520cc45d7702e7c049 (patch)
treec5b6d8774b761d3e60fad7279148fa305c2c9614
parent01832fd66ecd33b5fddd5d58a07a7f34aebcf3eb (diff)
Makefile: Avoid making pointless empty dir.pot filesv20180428
-rw-r--r--build-aux/Makefile.each.tail/20-libretools.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/build-aux/Makefile.each.tail/20-libretools.mk b/build-aux/Makefile.each.tail/20-libretools.mk
index 9b1a6e3..3e54614 100644
--- a/build-aux/Makefile.each.tail/20-libretools.mk
+++ b/build-aux/Makefile.each.tail/20-libretools.mk
@@ -62,7 +62,9 @@ $(srcdir)/%.pot: $(srcdir)/% $(topsrcdir)/src/lib/librexgettext
cd $(<D) && $(abspath $(topsrcdir)/src/lib/librexgettext) $(LIBREXGETTEXT_FLAGS) $(<F) > $(@F)
$(srcdir)/dir.pot: $(addprefix $(outdir)/,$(addsuffix .pot,$(libretools.pots)))
cat $^ | $(libretools.pofmt) > '$@'
+ifneq ($(strip $(libretools.pots)),)
$(call at.path,$(topsrcdir)/po/$(libretools.pkg).pot): $(srcdir)/dir.pot
+endif
# Install rules ######################################################
$(DESTDIR)$(pkgconfdir)/% : $(outdir)/% ; install -T -Dm644 '$<' '$@'