poezio/Makefile
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 9c67b7a0fa Makefile: remove locales and xmpppy stuff
2010-07-20 10:07:28 +00:00

33 lines
891 B
Makefile

prefix=/usr/local
LIBDIR=$(prefix)/lib
BINDIR=$(prefix)/bin
DATADIR=$(prefix)/share
LOCALEDIR=$(DATADIR)/locale
MANDIR=$(DATADIR)/man
INSTALL=install
all: Makefile
clean:
find ./ -name \*.pyc -delete
find ./ -name \*~ -delete
install:
$(INSTALL) -d $(BINDIR) $(DATADIR)/poezio $(DATADIR)/poezio/data $(DATADIR)/poezio/src $(DATADIR)/poezio/src/
$(INSTALL) -m644 data/* $(DESTDIR)$(DATADIR)/poezio/data/
for sourcefile in `find src/ -maxdepth 1 -type f -name \*.py` ; do \
$(INSTALL) -m644 $$sourcefile $(DESTDIR)$(DATADIR)/poezio/src; \
done
echo "#!/usr/bin/env sh" > $(DESTDIR)$(BINDIR)/poezio
echo "cd $(DATADIR)/poezio/src/ && python poezio.py" >> $(DESTDIR)$(BINDIR)/poezio
chmod 755 $(DESTDIR)$(BINDIR)/poezio
uninstall:
rm -f $(DESTDIR)$(BINDIR)/poezio
rm -rf $(DESTDIR)$(DATADIR)/poezio
pot:
xgettext src/*.py --from-code=utf-8 --keyword=_ -o locale/poezio.pot