aboutsummaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile6
1 files changed, 5 insertions, 1 deletions
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 \