diff options
author | Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr> | 2021-09-22 21:36:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-22 18:36:55 +0000 |
commit | 9e22f32c07db0b3b2d72fb252872c9f7bc7141e3 (patch) | |
tree | 3e0db2f59ec98c8e96cb464b7b4e1e1623f30ed0 /Makefile | |
parent | 915a7fd384e700dff10f6014167764cd9812badd (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-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) |