From: John Darrington Date: Sun, 6 Sep 2020 09:49:58 +0000 (+0200) Subject: Fix build error when building --without-gui X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b703fcd74fda545a8b0691f180aa2424c17488c1;p=pspp Fix build error when building --without-gui Closes bug #59069. --- diff --git a/po/automake.mk b/po/automake.mk index 072efea311..5270deda94 100644 --- a/po/automake.mk +++ b/po/automake.mk @@ -63,7 +63,7 @@ ALL_TRANSLATABLE_FILES = \ $(POTFILE): $(ALL_TRANSLATABLE_FILES) Makefile @$(MKDIR_P) po $(AM_V_GEN)$(XGETTEXT) $(XGETTEXT_OPTIONS) $(TRANSLATABLE_FILES) --language=C --keyword=_ --keyword=N_ -o $@,tmp - $(AM_V_at)$(XGETTEXT) $(XGETTEXT_OPTIONS) -j $(UI_FILES) --language=Glade -o $@,tmp + test -z "$(UI_FILES)" || $(AM_V_at)$(XGETTEXT) $(XGETTEXT_OPTIONS) -j $(UI_FILES) --language=Glade -o $@,tmp $(AM_V_at)$(XGETTEXT) $(XGETTEXT_OPTIONS) -j src/ui/gui/org.fsf.pspp.metainfo.xml.in -o $@,tmp $(AM_V_at)$(XGETTEXT) $(XGETTEXT_OPTIONS) -j src/ui/gui/org.fsf.pspp.desktop.in -o $@,tmp $(AM_V_at)$(SED) -e '/^"POT-Creation-Date: .*/d' $@,tmp > $@