From cd817304142a292e8d0655691fc5bbc33e8937df Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 9 Sep 2014 00:49:49 +0200 Subject: [PATCH] Allow specifying python binary to run omkbuild This is will ease python2 and python3 compatibility testing. --- snippets/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snippets/Makefile b/snippets/Makefile index b4ed279..f8e38c3 100644 --- a/snippets/Makefile +++ b/snippets/Makefile @@ -2,10 +2,12 @@ all: buildrules .PHONY: FORCE +PYTHON=python + version := $(patsubst v%,%,$(shell git describe)) ../rules/%/Makefile.rules: Makefile.rules.% FORCE - python ../omkbuild.py -o $@.tmp $< + $(PYTHON) ../omkbuild.py -o $@.tmp $< sed -i -e "s/@git-describe@/$(version)/g" $@.tmp mv $@.tmp $@ -- 2.39.2