poezio/Makefile

37 lines
805 B
Makefile
Raw Normal View History

prefix=/usr/local
LIBDIR=$(prefix)/lib
BINDIR=$(prefix)/bin
DATADIR=$(prefix)/share
2011-11-28 16:15:06 +00:00
DOCDIR=$(DATADIR)/doc
2010-01-31 05:33:54 +00:00
LOCALEDIR=$(DATADIR)/locale
MANDIR=$(DATADIR)/man
all: Makefile
python3 setup.py build_ext --inplace
clean:
find ./ -name \*.pyc -delete
find ./ -name \*.pyo -delete
find ./ -name \*~ -delete
2010-07-20 10:21:37 +00:00
find ./ -name "#*#" -delete
2013-04-13 20:59:37 +00:00
rm -r doc/build/
2010-01-31 05:33:54 +00:00
2011-11-08 22:04:37 +00:00
install: all
mkdir -p $(DESTDIR)$(prefix) $(DESTDIR)$(DOCDIR)/poezio/ $(DESTDIR)$(LOCALEDIR) $(DESTDIR)$(BINDIR)
2012-01-29 01:15:26 +00:00
2011-11-28 16:15:06 +00:00
cp -R doc/* $(DESTDIR)$(DOCDIR)/poezio/
cp README CHANGELOG COPYING $(DESTDIR)$(DOCDIR)/poezio/
2010-01-31 05:33:54 +00:00
uninstall:
rm -f $(DESTDIR)$(BINDIR)/poezio
rm -rf $(DESTDIR)$(DATADIR)/poezio
rm -rf $(DESTDIR)$(MANDIR)/man1/poezio.1
2010-01-31 05:33:54 +00:00
doc:
2013-04-13 20:59:37 +00:00
make -C doc/ html
2010-01-31 05:33:54 +00:00
pot:
xgettext src/*.py --from-code=utf-8 --keyword=_ -o locale/poezio.pot
.PHONY : doc