summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2014-09-14 21:29:27 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2014-09-14 21:29:27 -0700
commit6bace05aece734fd1efbfa7c46040f4e6fad2d86 (patch)
treeff648a3164c3ee710c1187d1a9312aa9328b1763 /Makefile
parent76cfe0df6cad8fc7e3cb858580233a72474b79a9 (diff)
Add manpage to make install
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 25fc0ea..ee02ea5 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,8 @@ VERSION=0.1beta
CPPFLAGS=-DVERSION=\"${VERSION}\"
CFLAGS+=-Wall -Wextra -g -std=c99 -O3
PREFIX?=/usr/local
+MANDIR?=$(PREFIX)/share/man
+BINDIR?=$(PREFIX)/bin
INSTALL=install
INSTALL_PROGRAM=$(INSTALL)
@@ -23,7 +25,8 @@ fzy: fzy.o match.o tty.o choices.o
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
install: fzy
- $(INSTALL_PROGRAM) fzy $(DESTDIR)$(PREFIX)/bin/fzy
+ $(INSTALL_PROGRAM) fzy $(DESTDIR)$(BINDIR)/fzy
+ $(INSTALL_PROGRAM) -D fzy.1 $(DESTDIR)$(MANDIR)/man1/fzy.1
clean:
$(RM) fzy fzytest *.o