From 4e99e0e4c7e592fb9ddfe48165422e12593281a0 Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Mon, 12 Aug 2019 16:24:23 +0200 Subject: Fix missing python3 during build phase --- po/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'po') diff --git a/po/Makefile b/po/Makefile index abb0258d..02a58b08 100644 --- a/po/Makefile +++ b/po/Makefile @@ -38,7 +38,11 @@ POTFILES = $(shell ls ../network-scripts/* | grep -v ifcfg-) \ all: $(NLSPACKAGE).pot $(FMTCATALOGS) $(NLSPACKAGE).pot: $(POTFILES) - ./xgettext_sh.py $(POTFILES) > $(NLSPACKAGE).po + if [ -z "$(PYTHON)" ]; then \ + ./xgettext_sh.py $(POTFILES) > $(NLSPACKAGE).po; \ + else \ + $(PYTHON) xgettext_sh.py $(POTFILES) > $(NLSPACKAGE).po; \ + fi if cmp -s $(NLSPACKAGE).po $(NLSPACKAGE).pot; then \ rm -f $(NLSPACKAGE).po; \ else \ -- cgit v1.2.1