makefile: Compile modules from command line

If we compile everything during the "make" step, the compiled modules
can be installed and the python won't have to regenerate them on every
startup.
This commit is contained in:
Bryan Schumaker 2011-06-25 18:53:49 -04:00
parent 1a45e95f9a
commit fd198294ee
1 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,13 @@
all: ocarina.py
./ocarina.py
PY = python2 -c
all: libsaria ocarina ocarina.py
.PHONY: libsaria ocarina
libsaria:
$(PY) "import compileall; compileall.compile_dir('libsaria', force=1)"
ocarina:
$(PY) "import compileall; compileall.compile_dir('ocarina', force=1)"
ocarina.py:
sh scripts/makebin.sh