Commits

Kirill Simonov committed 817ba10

Allow overriding path to the Python executable in Makefiles.

  • Participants
  • Parent commits 1fe4d6a

Comments (0)

Files changed (4)

 # to match your configuration.
 -include Makefile.env
 
+# Path to Python executable.
+PYTHON?=python
+
 # The connection URI for regression databases.
 SQLITE_REGRESS_DB?=sqlite:///build/regress/regress-sqlite/htsql_regress.sqlite
 PGSQL_ADDRESS?=${PGSQL_HOST}$(if ${PGSQL_PORT},:${PGSQL_PORT})

Makefile.env.sample

 # variables; if set, an environment variable will override the
 # values defined here.
 
+
+#
+# General configuration.
+#
+
+# Path to Python executable.
+PYTHON?=python
+
+
 #
 # PostgreSQL configuration.
 #

demo/htraf/Makefile

 include ../../Makefile.common
 
 serve:
-	python serve.py ${PGSQL_REGRESS_DB} ${HTSQL_HOST} ${HTSQL_PORT}
+	${PYTHON} serve.py ${PGSQL_REGRESS_DB} ${HTSQL_HOST} ${HTSQL_PORT}
 

demo/ssi/Makefile

 include ../../Makefile.common
 
 serve:
-	python serve.py ${PGSQL_REGRESS_DB} ${HTSQL_HOST} ${HTSQL_PORT}
+	${PYTHON} serve.py ${PGSQL_REGRESS_DB} ${HTSQL_HOST} ${HTSQL_PORT}