2014-03-08 11:47:40 +00:00
|
|
|
prefix=/usr/local/
|
2010-07-06 06:56:32 +00:00
|
|
|
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
|
|
|
|
|
2010-07-20 10:07:28 +00:00
|
|
|
all: Makefile
|
2013-05-26 18:07:12 +00:00
|
|
|
python3 setup.py build_ext --inplace
|
2010-01-31 15:09:58 +00:00
|
|
|
|
2010-07-20 10:07:28 +00:00
|
|
|
clean:
|
|
|
|
find ./ -name \*.pyc -delete
|
2013-01-06 16:36:14 +00:00
|
|
|
find ./ -name \*.pyo -delete
|
2010-07-20 10:07:28 +00:00
|
|
|
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
|
2013-05-26 19:06:17 +00:00
|
|
|
python3 setup.py install --root=$(DESTDIR) --optimize=1
|
2013-05-26 18:07:12 +00:00
|
|
|
mkdir -p $(DESTDIR)$(prefix) $(DESTDIR)$(DOCDIR)/poezio/ $(DESTDIR)$(LOCALEDIR) $(DESTDIR)$(BINDIR)
|
2011-11-28 16:15:06 +00:00
|
|
|
cp -R doc/* $(DESTDIR)$(DOCDIR)/poezio/
|
2013-05-26 18:07:12 +00:00
|
|
|
cp README CHANGELOG COPYING $(DESTDIR)$(DOCDIR)/poezio/
|
2010-01-31 05:33:54 +00:00
|
|
|
|
|
|
|
uninstall:
|
2010-07-06 06:56:32 +00:00
|
|
|
rm -f $(DESTDIR)$(BINDIR)/poezio
|
2014-02-19 00:20:15 +00:00
|
|
|
rm -rf $(DESTDIR)$(DOCDIR)/poezio/
|
2010-09-07 23:36:57 +00:00
|
|
|
rm -rf $(DESTDIR)$(MANDIR)/man1/poezio.1
|
2010-01-31 05:33:54 +00:00
|
|
|
|
2011-11-01 22:25:52 +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
|
2011-11-01 22:25:52 +00:00
|
|
|
|
2011-11-08 10:26:27 +00:00
|
|
|
.PHONY : doc
|