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:
parent
1a45e95f9a
commit
fd198294ee
11
Makefile
11
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue