From 9e22f32c07db0b3b2d72fb252872c9f7bc7141e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berke=20Kocao=C4=9Flu?= Date: Wed, 22 Sep 2021 21:36:55 +0300 Subject: Change location of example scripts (#86) * Use DOCPREFIX similar to MANPREFIX Co-authored-by: NRK --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3