This is will ease python2 and python3 compatibility testing.
version := $(patsubst v%,%,$(shell git describe))
../rules/%/Makefile.rules: Makefile.rules.% FORCE
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 $@
sed -i -e "s/@git-describe@/$(version)/g" $@.tmp
mv $@.tmp $@