aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7464323..68068e1 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ VERSION = 27.1
# PREFIX for install
PREFIX ?= /usr/local
MANPREFIX = $(PREFIX)/share/man
+DOCPREFIX = $(PREFIX)/share/doc/nsxiv
# autoreload backend: inotify/nop
AUTORELOAD = inotify
@@ -82,11 +83,11 @@ install: all
install -Dt $(DESTDIR)$(PREFIX)/bin nsxiv
@echo "INSTALL nsxiv.1"
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
- sed "s!PREFIX!$(PREFIX)!g; s!VERSION!$(VERSION)!g" nsxiv.1 \
+ sed "s!DOCPREFIX!$(DOCPREFIX)!g; s!PREFIX!$(PREFIX)!g; s!VERSION!$(VERSION)!g" nsxiv.1 \
>$(DESTDIR)$(MANPREFIX)/man1/nsxiv.1
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/nsxiv.1
@echo "INSTALL share/nsxiv/"
- install -Dt $(DESTDIR)$(PREFIX)/share/nsxiv/exec exec/*
+ install -Dt $(DESTDIR)$(DOCPREFIX)/examples examples/*
uninstall:
@echo "REMOVE bin/nsxiv"
@@ -94,5 +95,5 @@ uninstall:
@echo "REMOVE nsxiv.1"
rm -f $(DESTDIR)$(MANPREFIX)/man1/nsxiv.1
@echo "REMOVE share/nsxiv/"
- rm -rf $(DESTDIR)$(PREFIX)/share/nsxiv
+ rm -rf $(DESTDIR)$(DOCPREFIX)