From 2b42c6a3ead7c2bd35bbea1c6d704a4f89a4c8a2 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 26 May 2013 20:07:12 +0200 Subject: Update setup.py to use distutils MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (use new default directory, install the plugins as a separate python moduleā€¦) --- Makefile | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b9bdad54..4a56fa7f 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ LOCALEDIR=$(DATADIR)/locale MANDIR=$(DATADIR)/man all: Makefile - cd src/ && python3 ../setup.py build_ext --inplace + python3 setup.py build_ext --inplace clean: find ./ -name \*.pyc -delete @@ -17,25 +17,11 @@ clean: rm -r doc/build/ install: all - mkdir -p $(DESTDIR)$(prefix) - install -d $(DESTDIR)$(LOCALEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(DATADIR)/poezio $(DESTDIR)$(DATADIR)/poezio/data $(DESTDIR)$(DATADIR)/poezio/src/ $(DESTDIR)$(DATADIR)/poezio/src $(DESTDIR)$(DATADIR)/poezio/data/themes $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(DOCDIR)/poezio $(DESTDIR)$(DATADIR)/poezio/plugins - - cp -R data/* $(DESTDIR)$(DATADIR)/poezio/data/ - rm $(DESTDIR)$(DATADIR)/poezio/data/poezio.1 - - cp -R plugins/* $(DESTDIR)$(DATADIR)/poezio/plugins + mkdir -p $(DESTDIR)$(prefix) $(DESTDIR)$(DOCDIR)/poezio/ $(DESTDIR)$(LOCALEDIR) $(DESTDIR)$(BINDIR) cp -R doc/* $(DESTDIR)$(DOCDIR)/poezio/ - cp README CHANGELOG COPYING $(DESTDIR)$(DOCDIR)/poezio/ - install -m644 data/poezio.1 $(DESTDIR)$(MANDIR)/man1/ - for sourcefile in `ls -1 src/*.py src/*.so` ; do \ - install -m644 $$sourcefile $(DESTDIR)$(DATADIR)/poezio/src; \ - done - - echo "#!/usr/bin/env sh" > $(DESTDIR)$(BINDIR)/poezio - echo "python3 $(DATADIR)/poezio/src/poezio.py \$$@" >> $(DESTDIR)$(BINDIR)/poezio - chmod 755 $(DESTDIR)$(BINDIR)/poezio + cp README CHANGELOG COPYING $(DESTDIR)$(DOCDIR)/poezio/ uninstall: rm -f $(DESTDIR)$(BINDIR)/poezio -- cgit v1.2.3