From: Michal Sojka Date: Mon, 8 Sep 2014 22:49:49 +0000 (+0200) Subject: Allow specifying python binary to run omkbuild X-Git-Url: http://rtime.felk.cvut.cz/gitweb/omk.git/commitdiff_plain/cd817304142a292e8d0655691fc5bbc33e8937df Allow specifying python binary to run omkbuild This is will ease python2 and python3 compatibility testing. --- 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 $@