summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-05-26 20:07:12 +0200
committermathieui <mathieui@mathieui.net>2013-05-26 20:13:39 +0200
commit2b42c6a3ead7c2bd35bbea1c6d704a4f89a4c8a2 (patch)
tree10a77ef05670ec575e2c3357e0b3df9b0847a261 /Makefile
parent1b9dc72d14f52d55a936d92311c18912567359a4 (diff)
downloadpoezio-2b42c6a3ead7c2bd35bbea1c6d704a4f89a4c8a2.tar.gz
poezio-2b42c6a3ead7c2bd35bbea1c6d704a4f89a4c8a2.tar.bz2
poezio-2b42c6a3ead7c2bd35bbea1c6d704a4f89a4c8a2.tar.xz
poezio-2b42c6a3ead7c2bd35bbea1c6d704a4f89a4c8a2.zip
Update setup.py to use distutils
(use new default directory, install the plugins as a separate python moduleā€¦)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 3 insertions, 17 deletions
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