Skip to content
Snippets Groups Projects
Commit 39464e89 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

now when we do make, it compiles py files to pyo and make install install pyo...

now when we do make, it compiles py files to pyo and make install install pyo files instead of py files
parent 474fe344
No related branches found
No related tags found
No related merge requests found
......@@ -4,17 +4,19 @@ MODULES = common plugins/gtkgui
PREFIX = /usr
DESTDIR = /
FIND = find -regex '.*\.\(\(glade\)\|\(py\)\|\(xpm\)\|\(gif\)\|\(png\)\|\(mo\)\|\(wav\)\)'
FIND = find -regex '.*\.\(\(glade\)\|\(pyo\)\|\(xpm\)\|\(gif\)\|\(png\)\|\(mo\)\|\(wav\)\)'
FILES = `$(FIND)`
DIRS = `$(FIND) -exec dirname {} \; | sort -u`
FIND_LIB = find -regex '.*\.\(so\)'
FILES_LIB = `$(FIND_LIB)`
FIND_PY = find -regex '.*\.\(py\)'
FILES_PY = `$(FIND_PY)`
LANGS = fr pt_BR
SCRIPTS = \
scripts/gajim
all: translation trayicon idle
all: translation trayicon idle pyo
translation:
for l in $(LANGS) ; do \
......@@ -27,6 +29,12 @@ trayicon:
idle:
make -C common all;
pyo:
ST="import py_compile\n py_compile.compile('$$f')"
for f in $(FILES_PY) ; do \
python -O -c "$$ST"; \
done
clean:
find -name *.pyc -exec rm {} \;
find -name *.mo -exec rm {} \;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment