aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--initscripts.spec2
-rw-r--r--po/Makefile6
3 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 23db3282..e21cdaf4 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ make-binaries:
$(MAKE) -C src
make-translations:
- $(MAKE) -C po
+ $(MAKE) -C po PYTHON=$(PYTHON)
# NOTE: We are no longer installing into /usr/sbin directory, because this is
diff --git a/initscripts.spec b/initscripts.spec
index 2ac3b0ac..8cfdd788 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -182,7 +182,7 @@ support. Additional configuration is required after installation.
# ---------------
%build
-%make_build
+%make_build PYTHON=%{__python3}
# ---------------
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 \