]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Allow specifying python binary to run omkbuild
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 8 Sep 2014 22:49:49 +0000 (00:49 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 8 Sep 2014 22:51:32 +0000 (00:51 +0200)
This is will ease python2 and python3 compatibility testing.

snippets/Makefile

index b4ed27939d52635debc33ac60f825f51eea0d037..f8e38c39523bb8d98c8445ad52122ffb72d8fe57 100644 (file)
@@ -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 $@