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

we now install py files instead of pyo files

parent 725c5c03
No related branches found
No related tags found
No related merge requests found
...@@ -4,33 +4,29 @@ MODULES = src src/common po ...@@ -4,33 +4,29 @@ MODULES = src src/common po
PREFIX = /usr PREFIX = /usr
DESTDIR = / DESTDIR = /
FIND = find -regex '.*\.\(\(glade\)\|\(pyo\)\|\(xpm\)\|\(gif\)\|\(png\)\|\(mo\)\|\(wav\)\)' FIND = find -regex '.*\.\(\(glade\)\|\(py\)\|\(xpm\)\|\(gif\)\|\(png\)\|\(mo\)\|\(wav\)\)'
FILES = `$(FIND)` FILES = `$(FIND)`
DIRS = `$(FIND) -exec dirname {} \; | sort -u` DIRS = `$(FIND) -exec dirname {} \; | sort -u`
FIND_LIB = find -regex '.*\.\(so\)' FIND_LIB = find -regex '.*\.\(so\)'
FILES_LIB = `$(FIND_LIB)` FILES_LIB = `$(FIND_LIB)`
FIND_PY = find -regex '.*\.\(py\)'
FILES_PY = `$(FIND_PY)`
SCRIPTS = \ SCRIPTS = \
scripts/gajim scripts/gajim
all: translation trayicon idle pyo all: translation trayicon gtkspell idle
translation: translation:
make -C po all make -C po all
trayicon: trayicon:
make -C src all; make -C src trayicon.so;
gtkspell:
make -C src gtkspell.so;
idle: idle:
make -C src/common all; make -C src/common all;
pyo:
for f in $(FILES_PY) ; do \
python -OO -c "import py_compile; py_compile.compile('$$f')"; \
done
clean: clean:
find -name *.pyc -exec rm {} \; find -name *.pyc -exec rm {} \;
find -name *.pyo -exec rm {} \; find -name *.pyo -exec rm {} \;
...@@ -61,6 +57,7 @@ install: ...@@ -61,6 +57,7 @@ install:
DST=`dirname "$$f"`; \ DST=`dirname "$$f"`; \
cp "$$f" "$(DESTDIR)$(PREFIX)/share/gajim/$$DST/"; \ cp "$$f" "$(DESTDIR)$(PREFIX)/share/gajim/$$DST/"; \
done done
rm "$(DESTDIR)$(PREFIX)/share/gajim/setup_win32.py";
cp COPYING "$(DESTDIR)$(PREFIX)/share/gajim/"; cp COPYING "$(DESTDIR)$(PREFIX)/share/gajim/";
mkdir -p "$(DESTDIR)$(PREFIX)/share/applications"; mkdir -p "$(DESTDIR)$(PREFIX)/share/applications";
cp gajim.desktop "$(DESTDIR)$(PREFIX)/share/applications/"; cp gajim.desktop "$(DESTDIR)$(PREFIX)/share/applications/";
......
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