|
|
@ -9,6 +9,7 @@ VERSION = 27.1
|
|
|
|
# PREFIX for install
|
|
|
|
# PREFIX for install
|
|
|
|
PREFIX ?= /usr/local
|
|
|
|
PREFIX ?= /usr/local
|
|
|
|
MANPREFIX = $(PREFIX)/share/man
|
|
|
|
MANPREFIX = $(PREFIX)/share/man
|
|
|
|
|
|
|
|
DOCPREFIX = $(PREFIX)/share/doc/nsxiv
|
|
|
|
|
|
|
|
|
|
|
|
# autoreload backend: inotify/nop
|
|
|
|
# autoreload backend: inotify/nop
|
|
|
|
AUTORELOAD = inotify
|
|
|
|
AUTORELOAD = inotify
|
|
|
@ -82,11 +83,11 @@ install: all
|
|
|
|
install -Dt $(DESTDIR)$(PREFIX)/bin nsxiv
|
|
|
|
install -Dt $(DESTDIR)$(PREFIX)/bin nsxiv
|
|
|
|
@echo "INSTALL nsxiv.1"
|
|
|
|
@echo "INSTALL nsxiv.1"
|
|
|
|
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
|
|
|
|
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
|
|
|
|
>$(DESTDIR)$(MANPREFIX)/man1/nsxiv.1
|
|
|
|
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/nsxiv.1
|
|
|
|
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/nsxiv.1
|
|
|
|
@echo "INSTALL share/nsxiv/"
|
|
|
|
@echo "INSTALL share/nsxiv/"
|
|
|
|
install -Dt $(DESTDIR)$(PREFIX)/share/nsxiv/exec exec/*
|
|
|
|
install -Dt $(DESTDIR)$(DOCPREFIX)/examples examples/*
|
|
|
|
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
uninstall:
|
|
|
|
@echo "REMOVE bin/nsxiv"
|
|
|
|
@echo "REMOVE bin/nsxiv"
|
|
|
@ -94,5 +95,5 @@ uninstall:
|
|
|
|
@echo "REMOVE nsxiv.1"
|
|
|
|
@echo "REMOVE nsxiv.1"
|
|
|
|
rm -f $(DESTDIR)$(MANPREFIX)/man1/nsxiv.1
|
|
|
|
rm -f $(DESTDIR)$(MANPREFIX)/man1/nsxiv.1
|
|
|
|
@echo "REMOVE share/nsxiv/"
|
|
|
|
@echo "REMOVE share/nsxiv/"
|
|
|
|
rm -rf $(DESTDIR)$(PREFIX)/share/nsxiv
|
|
|
|
rm -rf $(DESTDIR)$(DOCPREFIX)
|
|
|
|
|
|
|
|
|
|
|
|