gajim-plural/Makefile

63 lines
1.9 KiB
Makefile
Raw Normal View History

2005-03-22 15:09:21 +01:00
VERSION ?= 0.6
2005-03-08 11:43:25 +01:00
MODULES = common plugins/gtkgui
PREFIX = /usr
DESTDIR = /
FIND = find -regex '.*\.\(\(glade\)\|\(py\)\|\(xpm\)\|\(gif\)\|\(png\)\|\(mo\)\|\(wav\)\)'
FILES = `$(FIND)`
DIRS = `$(FIND) -exec dirname {} \; | sort -u`
FIND_LIB = find -regex '.*\.\(so\)'
FILES_LIB = `$(FIND_LIB)`
2005-03-12 23:53:17 +01:00
LANGS = fr pt_BR
SCRIPTS = \
scripts/gajim
all:
2005-03-12 23:53:17 +01:00
for l in $(LANGS) ; do \
msgfmt Messages/$$l/LC_MESSAGES/gajim.po -o Messages/$$l/LC_MESSAGES/gajim.mo; \
done
2004-11-26 00:01:38 +01:00
$(foreach sdir, $(MODULES), make -C $(sdir) all;)
clean:
find -name *.pyc -exec rm {} \;
2004-11-26 00:01:38 +01:00
$(foreach sdir, $(MODULES), make -C $(sdir) clean;)
# FIXME -- ol<6F> gorito
dist:
-rm -rf gajim-$(VERSION)
mkdir gajim-$(VERSION)
cp -r plugins scripts common Core doc Messages sounds gajim-$(VERSION)/
2005-03-22 15:09:21 +01:00
cp setup_win32.py gajim.iss AUTHORS gajim.1 gajim.xpm gajim.ico COPYING Makefile Changelog README gajim.py gajim-$(VERSION)
-find gajim-$(VERSION) -name '.svn' -exec rm -rf {} \; 2> /dev/null
find gajim-$(VERSION) -name '*.pyc' -exec rm {} \;
find gajim-$(VERSION) -name '*.pyo' -exec rm {} \;
find gajim-$(VERSION) -name '.*' -exec rm {} \;
@echo tarring gajim-$(VERSION) ...
@tar cjf gajim-$(VERSION).tar.bz2 gajim-$(VERSION)/
rm -rf gajim-$(VERSION)
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"; \
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/"; \
done
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
mkdir -p "$(DESTDIR)$(PREFIX)/bin";
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"; \
done