aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBerke Kocaoğlu <berke.kocaoglu@metu.edu.tr>2021-09-22 21:36:55 +0300
committerGitHub <noreply@github.com>2021-09-22 18:36:55 +0000
commit9e22f32c07db0b3b2d72fb252872c9f7bc7141e3 (patch)
tree3e0db2f59ec98c8e96cb464b7b4e1e1623f30ed0 /Makefile
parent915a7fd384e700dff10f6014167764cd9812badd (diff)
Change location of example scripts (#86)
* Use DOCPREFIX similar to MANPREFIX Co-authored-by: NRK <nrk@disroot.org>
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)