poezio/Makefile

40 lines
1.2 KiB
Makefile
Raw Normal View History

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
2010-09-03 17:59:04 +00:00
INSTALL=/bin/install
CP=/bin/cp
CHMOD=/bin/chmod
2010-01-31 05:33:54 +00:00
all: Makefile
clean:
find ./ -name \*.pyc -delete
find ./ -name \*~ -delete
2010-07-20 10:21:37 +00:00
find ./ -name "#*#" -delete
2010-01-31 05:33:54 +00:00
install:
2010-07-20 19:19:46 +00:00
mkdir -p $(DESTDIR)
2010-09-03 17:59:04 +00:00
$(INSTALL) -d $(DESTDIR)$(LOCALEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(DATADIR)/poezio $(DESTDIR)$(DATADIR)/poezio/data $(DESTDIR)$(DATADIR)/poezio/src/ $(DESTDIR)$(DATADIR)/poezio/src/xmpp $(DESTDIR)$(DATADIR)/poezio/data/themes $(DESTDIR)$(MANDIR)/man1
2010-01-31 05:33:54 +00:00
2010-09-03 17:59:04 +00:00
$(CP) data/* $(DESTDIR)$(DATADIR)/poezio/data/ -R
$(CHMOD) 644 -R $(DESTDIR)$(DATADIR)/poezio/data/
2010-01-31 05:33:54 +00:00
2010-09-03 17:59:04 +00:00
$(INSTALL) -m644 data/poezio.1 $(DESTDIR)$(MANDIR)/man1/
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
2010-09-03 17:59:04 +00:00
echo "cd $(DATADIR)/poezio/src/ && python3 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