From ad0e554991e7788d5af830520cc45d7702e7c049 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 28 Apr 2018 10:19:13 -0400 Subject: Makefile: Avoid making pointless empty dir.pot files --- build-aux/Makefile.each.tail/20-libretools.mk | 2 ++ 1 file changed, 2 insertions(+) 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 $( $(@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 '$<' '$@' -- cgit v1.2.2