gajim-plural/Makefile

77 lines
2.2 KiB
Makefile
Raw Normal View History

2005-05-30 23:21:42 +02:00
VERSION ?= 0.7.1
2005-04-25 09:56:44 +02:00
MODULES = src src/common po
2005-03-08 11:43:25 +01:00
PREFIX = /usr
DESTDIR = /
FIND = find -regex '.*\.\(\(glade\)\|\(py\)\|\(xpm\)\|\(gif\)\|\(png\)\|\(mo\)\|\(wav\)\)'
2005-03-08 11:43:25 +01:00
FILES = `$(FIND)`
DIRS = `$(FIND) -exec dirname {} \; | sort -u`
FIND_LIB = find -regex '.*\.\(so\)'
FILES_LIB = `$(FIND_LIB)`
SCRIPTS = \
scripts/gajim
all: translation trayicon gtkspell idle
translation:
2005-04-25 09:56:44 +02:00
make -C po all
trayicon:
make -C src trayicon.so;
gtkspell:
make -C src gtkspell.so;
idle:
2005-04-17 13:49:53 +02:00
make -C src/common all;
clean:
find -name *.pyc -exec rm {} \;
2005-05-15 23:40:42 +02:00
find -name *.pyo -exec rm {} \;
find -name *.mo -exec rm {} \;
2004-11-26 00:01:38 +01:00
$(foreach sdir, $(MODULES), make -C $(sdir) clean;)
dist:
-rm -rf gajim-$(VERSION)
mkdir gajim-$(VERSION)
2005-05-15 23:40:42 +02:00
cp -r data src doc po scripts gajim-$(VERSION)/
cp AUTHORS gajim.1 gajim.xpm gajim.ico gajim.desktop gajim.pot COPYING Makefile Changelog README launch.sh 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) ...
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)/
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";
2005-03-23 00:26:08 +01:00
cp COPYING "$(DESTDIR)$(PREFIX)/share/gajim/";
2005-05-18 18:04:58 +02:00
mkdir -p "$(DESTDIR)$(PREFIX)/share/applications";
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";
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