summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2011-07-08 02:13:19 +0200
committerPeter Simons <simons@cryp.to>2011-07-08 02:13:19 +0200
commit8402034298676fb3aa5051643548539ae5c5ccd1 (patch)
treeb08890ec50fcee19be7458b2249a590c47debd79 /cfg.mk
parentdc74e8f6c4ad27f591b974200b3856b7a1ce6f27 (diff)
downloadautoconf-archive-8402034298676fb3aa5051643548539ae5c5ccd1.tar.gz
cfg.mk: don't rely on shebang mechanism to run python scripts
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/cfg.mk b/cfg.mk
index 9d92661..b92f2b9 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -12,6 +12,8 @@ news-check-lines-spec := 11
# maintainer targets
+PYTHON := python
+
M4DIR := $(srcdir)/m4
STAGEDIR := $(srcdir)/stage
DOCDIR := $(srcdir)/doc
@@ -30,11 +32,11 @@ $(STAGEDIR)/manifest:
@for n in $(basename $(notdir $(M4_FILES))); do echo "$$n" >>"$@"; done
$(STAGEDIR)/%.m4 : $(M4DIR)/%.m4 $(STAGEDIR)/manifest $(srcdir)/macro.py $(srcdir)/macro2m4.py
- $(srcdir)/macro2m4.py "$<" "$@"
+ $(PYTHON) $(srcdir)/macro2m4.py "$<" "$@"
@diff -u "$<" "$@" || (touch --date="1970-01-01 01:00:00" "$@"; false)
$(DOCDIR)/%.texi : $(STAGEDIR)/%.m4 $(srcdir)/macro2texi.py $(srcdir)/macro.py
- $(srcdir)/macro2texi.py "$<" "$@"
+ $(PYTHON) $(srcdir)/macro2texi.py "$<" "$@"
$(DOCDIR)/all-macros.texi: $(srcdir)/configure
@echo generating $@