2004-06-09 16:22:27 +02:00
|
|
|
MODULES = common plugins/gtkgui
|
2004-11-25 20:27:09 +01:00
|
|
|
PREFIX = /usr
|
|
|
|
|
|
|
|
FIND= find -regex '.*\.\(\(glade\)\|\(py\)\|\(xpm\)\)'
|
|
|
|
FILES=`$(FIND)`
|
|
|
|
DIRS= `$(FIND) -exec dirname {} \; | sort -u`
|
|
|
|
|
|
|
|
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 \
|
|
|
|
if [ ! -d $(PREFIX)/share/gajim/$$d ] ; then \
|
|
|
|
mkdir -p "$(PREFIX)/share/gajim/$$d"; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
for f in $(FILES) ; do \
|
|
|
|
DST=`dirname "$$f"`; \
|
|
|
|
cp "$$f" "$(PREFIX)/share/gajim/$$DST/"; \
|
|
|
|
done
|
|
|
|
for s in $(SCRIPTS) ; do \
|
|
|
|
BASE=`basename "$$s"`; \
|
|
|
|
F=`cat "$$s" | sed -e 's!PREFIX!$(PREFIX)!g'`; \
|
|
|
|
echo "$$F" > "$(PREFIX)/bin/$$BASE"; \
|
|
|
|
chmod +x "$(PREFIX)/bin/$$BASE"; \
|
|
|
|
done
|