2004-06-09 16:22:27 +02:00
|
|
|
MODULES = common plugins/gtkgui
|
2004-11-25 20:27:09 +01:00
|
|
|
PREFIX = /usr
|
2004-12-19 22:31:25 +01:00
|
|
|
DESTDIR = /
|
2004-11-25 20:27:09 +01:00
|
|
|
|
2005-02-26 20:35:47 +01:00
|
|
|
FIND= find -regex '.*\.\(\(glade\)\|\(py\)\|\(xpm\)\|\(gif\)\|\(png\)\|\(mo\)\|\(wav\)\)'
|
2004-11-25 20:27:09 +01:00
|
|
|
FILES=`$(FIND)`
|
|
|
|
DIRS= `$(FIND) -exec dirname {} \; | sort -u`
|
2005-01-26 11:45:33 +01:00
|
|
|
FIND_LIB= find -regex '.*\.\(so\)'
|
|
|
|
FILES_LIB=`$(FIND_LIB)`
|
2004-11-25 20:27:09 +01:00
|
|
|
|
|
|
|
SCRIPTS = \
|
|
|
|
scripts/gajim
|
2004-06-09 16:22:27 +02:00
|
|
|
|
2004-05-28 06:20:30 +02:00
|
|
|
all:
|
|
|
|
msgfmt Messages/fr/LC_MESSAGES/gajim.po -o Messages/fr/LC_MESSAGES/gajim.mo
|
2004-11-26 00:01:38 +01:00
|
|
|
$(foreach sdir, $(MODULES), make -C $(sdir) all;)
|
2004-06-09 16:22:27 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
find -name *.pyc -exec rm {} \;
|
2004-11-26 00:01:38 +01:00
|
|
|
$(foreach sdir, $(MODULES), make -C $(sdir) clean;)
|
2004-11-25 20:27:09 +01:00
|
|
|
|
|
|
|
install:
|
|
|
|
for d in $(DIRS) ; do \
|
2004-12-19 22:31:25 +01:00
|
|
|
if [ ! -d $(DESTDIR)$(PREFIX)/share/gajim/$$d ] ; then \
|
|
|
|
mkdir -p "$(DESTDIR)$(PREFIX)/share/gajim/$$d"; \
|
2004-11-25 20:27:09 +01:00
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
for f in $(FILES) ; do \
|
|
|
|
DST=`dirname "$$f"`; \
|
2004-12-19 22:31:25 +01:00
|
|
|
cp "$$f" "$(DESTDIR)$(PREFIX)/share/gajim/$$DST/"; \
|
2004-11-25 20:27:09 +01:00
|
|
|
done
|
2005-01-26 11:45:33 +01:00
|
|
|
rm "$(DESTDIR)$(PREFIX)/share/gajim/setup_win32.py";
|
|
|
|
mkdir -p "$(DESTDIR)$(PREFIX)/lib/gajim";
|
|
|
|
for f in $(FILES_LIB) ; do \
|
|
|
|
cp "$$f" "$(DESTDIR)$(PREFIX)/lib/gajim/"; \
|
|
|
|
done
|
2004-11-25 20:27:09 +01:00
|
|
|
for s in $(SCRIPTS) ; do \
|
|
|
|
BASE=`basename "$$s"`; \
|
|
|
|
F=`cat "$$s" | sed -e 's!PREFIX!$(PREFIX)!g'`; \
|
2004-12-19 22:31:25 +01:00
|
|
|
echo "$$F" > "$(DESTDIR)$(PREFIX)/bin/$$BASE"; \
|
|
|
|
chmod +x "$(DESTDIR)$(PREFIX)/bin/$$BASE"; \
|
2004-11-25 20:27:09 +01:00
|
|
|
done
|