poezio/Makefile

34 lines
891 B
Makefile
Raw Normal View History

2010-02-01 14:11:53 +00:00
prefix=/usr/local
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
all: Makefile
clean:
find ./ -name \*.pyc -delete
find ./ -name \*~ -delete
2010-01-31 05:33:54 +00:00
install:
$(INSTALL) -d $(BINDIR) $(DATADIR)/poezio $(DATADIR)/poezio/data $(DATADIR)/poezio/src $(DATADIR)/poezio/src/
2010-01-31 05:33:54 +00:00
$(INSTALL) -m644 data/* $(DESTDIR)$(DATADIR)/poezio/data/
2010-01-31 05:33:54 +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
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:
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