2005-05-30 23:21:42 +02:00
|
|
|
VERSION ?= 0.7.1
|
2004-11-25 20:27:09 +01:00
|
|
|
|
2005-06-09 13:34:32 +02:00
|
|
|
GAJIM_AP = 0
|
2005-04-25 09:56:44 +02:00
|
|
|
MODULES = src src/common po
|
2005-06-19 00:45:58 +02:00
|
|
|
PREFIX = /usr/local
|
2005-03-08 11:43:25 +01:00
|
|
|
DESTDIR = /
|
2005-06-15 20:04:33 +02:00
|
|
|
LIBDIR = /lib
|
2005-03-08 11:43:25 +01:00
|
|
|
|
2005-06-02 20:05:01 +02:00
|
|
|
FIND = find . \( -name '*.glade' -o -name '*.py' -o -name '*.xpm' -o -name '*.gif' -o -name '*.png' -o -name '*.mo' -o -name '*.wav' \)
|
|
|
|
|
2005-03-08 11:43:25 +01:00
|
|
|
FILES = `$(FIND)`
|
|
|
|
DIRS = `$(FIND) -exec dirname {} \; | sort -u`
|
2005-06-02 20:05:01 +02:00
|
|
|
FIND_LIB = find . -name '*.so'
|
2005-03-08 11:43:25 +01:00
|
|
|
FILES_LIB = `$(FIND_LIB)`
|
2004-11-25 20:27:09 +01:00
|
|
|
|
|
|
|
SCRIPTS = \
|
|
|
|
scripts/gajim
|
2004-06-09 16:22:27 +02:00
|
|
|
|
2005-05-30 21:17:28 +02:00
|
|
|
all: translation trayicon gtkspell idle
|
2005-03-23 12:52:25 +01:00
|
|
|
|
|
|
|
translation:
|
2005-06-02 20:05:01 +02:00
|
|
|
${MAKE} -C po all
|
2005-03-23 12:52:25 +01:00
|
|
|
|
|
|
|
trayicon:
|
2005-06-02 20:05:01 +02:00
|
|
|
${MAKE} -C src trayicon.so;
|
2005-05-30 21:17:28 +02:00
|
|
|
|
|
|
|
gtkspell:
|
2005-06-02 20:05:01 +02:00
|
|
|
${MAKE} -C src gtkspell.so;
|
2005-03-23 12:52:25 +01:00
|
|
|
|
|
|
|
idle:
|
2005-06-02 20:05:01 +02:00
|
|
|
${MAKE} -C src/common all;
|
2004-06-09 16:22:27 +02:00
|
|
|
|
|
|
|
clean:
|
2005-06-02 20:05:01 +02:00
|
|
|
find . -name *.pyc -exec rm {} \;
|
|
|
|
find . -name *.pyo -exec rm {} \;
|
|
|
|
find . -name *.mo -exec rm {} \;
|
|
|
|
$(foreach sdir, $(MODULES), ${MAKE} -C $(sdir) clean;)
|
2004-11-25 20:27:09 +01:00
|
|
|
|
2005-03-08 11:44:31 +01:00
|
|
|
dist:
|
2005-06-02 20:05:01 +02:00
|
|
|
rm -rf gajim-$(VERSION)
|
2005-03-08 11:44:31 +01:00
|
|
|
mkdir gajim-$(VERSION)
|
2005-06-04 17:42:37 +02:00
|
|
|
cp -r data src doc po gajim-$(VERSION)/
|
2005-06-04 01:58:23 +02:00
|
|
|
cp AUTHORS gajim.1 gajim.ico gajim.desktop gajim.pot COPYING Makefile Changelog README launch.sh gajim-$(VERSION)
|
2005-06-04 17:42:37 +02:00
|
|
|
mkdir gajim-$(VERSION)/scripts
|
|
|
|
cp scripts/gajim gajim-$(VERSION)/scripts/
|
2005-06-04 11:37:58 +02:00
|
|
|
find gajim-$(VERSION) -name '.svn' -type d | xargs rm -rf
|
2005-03-08 11:44:31 +01:00
|
|
|
find gajim-$(VERSION) -name '*.pyc' -exec rm {} \;
|
|
|
|
find gajim-$(VERSION) -name '*.pyo' -exec rm {} \;
|
|
|
|
find gajim-$(VERSION) -name '.*' -exec rm {} \;
|
|
|
|
@echo tarring gajim-$(VERSION) ...
|
2005-04-17 13:49:53 +02:00
|
|
|
@tar czf gajim-$(VERSION).tar.gz gajim-$(VERSION)/
|
2005-05-15 23:40:42 +02:00
|
|
|
@tar cjf gajim-$(VERSION).tar.bz2 gajim-$(VERSION)/
|
2005-03-08 11:44:31 +01:00
|
|
|
rm -rf gajim-$(VERSION)
|
|
|
|
|
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-03-23 00:26:08 +01:00
|
|
|
cp COPYING "$(DESTDIR)$(PREFIX)/share/gajim/";
|
2005-06-04 17:20:55 +02:00
|
|
|
mkdir -p "$(DESTDIR)$(PREFIX)/share/pixmaps";
|
|
|
|
cp data/pixmaps/gajim.png "$(DESTDIR)$(PREFIX)/share/pixmaps/";
|
2005-06-10 01:28:07 +02:00
|
|
|
cp data/pixmaps/gajim_about.png "$(DESTDIR)$(PREFIX)/share/pixmaps/";
|
2005-05-18 18:04:58 +02:00
|
|
|
mkdir -p "$(DESTDIR)$(PREFIX)/share/applications";
|
2005-05-10 18:12:35 +02:00
|
|
|
cp gajim.desktop "$(DESTDIR)$(PREFIX)/share/applications/";
|
2005-05-23 10:01:15 +02:00
|
|
|
mkdir -p "$(DESTDIR)$(PREFIX)/share/man/man1";
|
|
|
|
cp gajim.1 "$(DESTDIR)$(PREFIX)/share/man/man1";
|
2005-06-15 20:04:33 +02:00
|
|
|
mkdir -p "$(DESTDIR)$(PREFIX)$(LIBDIR)/gajim";
|
2005-01-26 11:45:33 +01:00
|
|
|
for f in $(FILES_LIB) ; do \
|
2005-06-15 20:04:33 +02:00
|
|
|
cp "$$f" "$(DESTDIR)$(PREFIX)$(LIBDIR)/gajim/"; \
|
2005-01-26 11:45:33 +01:00
|
|
|
done
|
2005-03-22 18:50:46 +01:00
|
|
|
mkdir -p "$(DESTDIR)$(PREFIX)/bin";
|
2004-11-25 20:27:09 +01:00
|
|
|
for s in $(SCRIPTS) ; do \
|
|
|
|
BASE=`basename "$$s"`; \
|
2005-06-09 13:34:32 +02:00
|
|
|
if [ $(GAJIM_AP) -ne 0 ] ; then \
|
|
|
|
F=`cat "$$s"`; \
|
|
|
|
else \
|
|
|
|
F=`cat "$$s" | sed -e 's!PREFIX!$(PREFIX)!g'`; \
|
|
|
|
fi; \
|
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
|