summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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