aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-11-27 13:43:01 +0100
committerMattias Andrée <maandree@operamail.com>2015-11-27 13:43:01 +0100
commite86a59971c8a809298ab68368ca5045c1b59366d (patch)
tree256bbd6f2c33a4f344acca9b8e1b6a4184cb7e85 /Makefile
parentadd shell tab-completion (diff)
downloadbfind-2.1.tar.gz
bfind-2.1.tar.bz2
bfind-2.1.tar.xz
m + add manpage + improve readme2.1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index de78779..3998b25 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,8 @@ BINDIR = $(PREFIX)/bin
DATADIR = $(PREFIX)/share
INFODIR = $(DATADIR)/info
DOCDIR = $(DATADIR)/doc
+MANDIR = $(DATADIR)/man
+MAN1DIR = $(MANDIR)/man1
LICENSEDIR = $(DATADIR)/licenses
COMMAND = bfind
@@ -86,7 +88,7 @@ bin/bfind.%sh-completion: obj/bfind.auto-completion
.PHONY: install-default
-install-default: install-core install-info install-shell
+install-default: install-core install-info install-man install-shell
.PHONY: install
install: install-core install-doc install-shell
@@ -105,7 +107,7 @@ install-license:
install -m644 -- COPYING LICENSE "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)"
.PHONY: install-doc
-install-doc: install-info install-pdf install-dvi install-ps
+install-doc: install-info install-pdf install-dvi install-ps install-man
.PHONY: install-info
install-info: bin/bfind.info
@@ -127,6 +129,11 @@ install-ps: bin/bfind.ps
install -dm755 -- "$(DESTDIR)$(DOCDIR)"
install -m644 $< -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME).ps"
+.PHONY: install-man
+install-man: doc/man/bfind.1
+ install -dm755 -- "$(DESTDIR)$(MAN1DIR)"
+ install -m644 $< -- "$(DESTDIR)$(MAN1DIR)/$(COMMAND).1"
+
.PHONY: install-shell
install-shell: install-bash install-fish install-zsh
@@ -160,6 +167,7 @@ uninstall:
-rm -- "$(DESTDIR)$(DATADIR)/bash-completion/completions/$(COMMAND)"
-rm -- "$(DESTDIR)$(DATADIR)/fish/completions/$(COMMAND).fish"
-rm -- "$(DESTDIR)$(DATADIR)/zsh/site-functions/_$(COMMAND)"
+ -rm -- "$(DESTDIR)$(MAN1DIR)/$(COMMAND).1"