summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-02-10 17:40:53 +0100
committermathieui <mathieui@mathieui.net>2015-02-10 21:08:36 +0100
commit14b58c528e630ad8528099525f59e896a1cdaec2 (patch)
treee63447f6c4b346e536e07aa08e2c21b7cfdd44d1 /Makefile
parentc38cddd0ff0fb6e23538131e0d844cf159852c73 (diff)
downloadpoezio-14b58c528e630ad8528099525f59e896a1cdaec2.tar.gz
poezio-14b58c528e630ad8528099525f59e896a1cdaec2.tar.bz2
poezio-14b58c528e630ad8528099525f59e896a1cdaec2.tar.xz
poezio-14b58c528e630ad8528099525f59e896a1cdaec2.zip
Update setup files
- remove “make uninstall” target which was broken a long time ago - move very install action to the setup.py (alias “make install” to “python setup.py install” - add some stuff to “make clean” - update the config.py to search the default config file using pkg_resources (more reliable than dirname(__file__)) - install the html doc only if available - use README.rst for the setup.py long_description - also, update the copyright notice to 2015
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 3 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index d9f4df85..a9f8dd62 100644
--- a/Makefile
+++ b/Makefile
@@ -14,21 +14,16 @@ clean:
find ./ -name \*.pyc -delete
find ./ -name \*.pyo -delete
find ./ -name \*~ -delete
+ find ./ -type d -name __pycache__ -delete
find ./ -name "#*#" -delete
rm -rf doc/build/
+ rm -rf poezio.egg-info
+ rm -rf dist
rm -rf build
rm -f src/*.so
install: all
python3 setup.py install --root=$(DESTDIR) --optimize=1
- mkdir -p $(DESTDIR)$(prefix) $(DESTDIR)$(DOCDIR)/poezio/ $(DESTDIR)$(LOCALEDIR) $(DESTDIR)$(BINDIR)
- cp -R doc/* $(DESTDIR)$(DOCDIR)/poezio/
- cp README.rst CHANGELOG COPYING $(DESTDIR)$(DOCDIR)/poezio/
-
-uninstall:
- rm -f $(DESTDIR)$(BINDIR)/poezio
- rm -rf $(DESTDIR)$(DOCDIR)/poezio/
- rm -rf $(DESTDIR)$(MANDIR)/man1/poezio.1
doc:
make -C doc/ html