Fix manpage typo
[openresolv] / Makefile
index fb0191eebe82f39c3e160395cf481331d94abb92..32c40af021ed851e46de13161931d5ddd7d73b59 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-NAME = openresolv 
+NAME = openresolv
 VERSION = 1.0
 PKG = $(NAME)-$(VERSION)
 
@@ -6,9 +6,8 @@ DESTDIR =
 PREFIX =
 MANPREFIX ?= /usr/share
 ROOT = $(DESTDIR)$(PREFIX)
-INSTALL = install
 ETCDIR = $(ROOT)/etc/resolvconf
-MANDIR = $(MANPREFIX)/man/man8
+MANDIR = $(DESTDIR)$(MANPREFIX)/man/man8
 BINDIR = $(ROOT)/sbin
 VARDIR = $(DESTDIR)/var/run
 UPDATEDIR = $(ETCDIR)/update.d
@@ -17,6 +16,8 @@ RESOLVCONF = resolvconf resolvconf.8
 SUBSCRIBERS = libc dnsmasq named
 TARGET = $(RESOLVCONF) $(SUBSCRIBERS)
 
+INSTALL ?= install
+
 .SUFFIXES: .in
 
 all: $(TARGET)