2010-02-01 14:11:53 +00:00
|
|
|
prefix=/usr/local
|
2010-07-06 06:56:32 +00:00
|
|
|
LIBDIR=$(prefix)/lib
|
|
|
|
BINDIR=$(prefix)/bin
|
|
|
|
DATADIR=$(prefix)/share
|
2010-01-31 05:33:54 +00:00
|
|
|
LOCALEDIR=$(DATADIR)/locale
|
|
|
|
MANDIR=$(DATADIR)/man
|
|
|
|
INSTALL=install
|
|
|
|
|
2010-02-15 00:20:47 +00:00
|
|
|
all:
|
2010-01-31 15:09:58 +00:00
|
|
|
cd src/xmpppy-0.5.0rc1 && pwd && python setup.py build && cp -r xmpp ..
|
|
|
|
|
2010-01-31 05:33:54 +00:00
|
|
|
clean: Makefile
|
|
|
|
|
2010-07-05 13:13:56 +00:00
|
|
|
install:
|
2010-07-06 06:56:32 +00:00
|
|
|
mkdir -p $(DESTDIR)
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(LOCALEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(DATADIR)/poezio $(DESTDIR)$(DATADIR)/poezio/data $(DESTDIR)$(DATADIR)/poezio/src $(DESTDIR)$(DATADIR)/poezio/src/ $(DESTDIR)$(DATADIR)/poezio/src/xmpp
|
2010-01-31 05:33:54 +00:00
|
|
|
|
2010-07-06 06:56:32 +00:00
|
|
|
$(INSTALL) -m644 data/* $(DESTDIR)$(DATADIR)/poezio/data/
|
2010-01-31 05:33:54 +00:00
|
|
|
|
2010-07-06 06:56:32 +00:00
|
|
|
for sourcefile in `find src/ -maxdepth 1 -type f -name \*.py` ; do \
|
|
|
|
$(INSTALL) -m644 $$sourcefile $(DESTDIR)$(DATADIR)/poezio/src; \
|
2010-01-31 05:33:54 +00:00
|
|
|
done
|
2010-07-06 06:56:32 +00:00
|
|
|
$(INSTALL) -m644 src/xmpp/* $(DESTDIR)$(DATADIR)/poezio/src/xmpp/
|
2010-01-31 05:33:54 +00:00
|
|
|
|
2010-07-06 06:56:32 +00:00
|
|
|
echo "#!/usr/bin/env sh" > $(DESTDIR)$(BINDIR)/poezio
|
|
|
|
echo "cd $(DATADIR)/poezio/src/ && python poezio.py" >> $(DESTDIR)$(BINDIR)/poezio
|
|
|
|
chmod 755 $(DESTDIR)$(BINDIR)/poezio
|
2010-01-31 05:33:54 +00:00
|
|
|
|
|
|
|
uninstall:
|
2010-07-06 06:56:32 +00:00
|
|
|
rm -f $(DESTDIR)$(BINDIR)/poezio
|
|
|
|
rm -rf $(DESTDIR)$(DATADIR)/poezio
|
2010-01-31 05:33:54 +00:00
|
|
|
|
|
|
|
pot:
|
|
|
|
xgettext src/*.py --from-code=utf-8 --keyword=_ -o locale/poezio.pot
|