--- Makefile.orig	2014-05-21 16:24:13.000000000 +0200
+++ Makefile	2014-06-08 18:14:09.000000000 +0200
@@ -1,6 +1,8 @@
-prefix = /usr
+prefix = ${PREFIX}
 
 CFLAGS ?= -g -O2
+LDFLAGS += -L${LOCALBASE}/lib -lintl
+CFLAGS += -I${LOCALBASE}/include
 
 PERL = perl
 INSTALL = install
@@ -98,17 +100,17 @@
 
 install-whois: whois
 	$(INSTALL) -d $(BASEDIR)$(prefix)/bin/
-	$(INSTALL) -d $(BASEDIR)$(prefix)/share/man/man1/
-	$(INSTALL) -d $(BASEDIR)$(prefix)/share/man/man5/
-	$(INSTALL) -m 0755 whois $(BASEDIR)$(prefix)/bin/
-	$(INSTALL) -m 0644 whois.1 $(BASEDIR)$(prefix)/share/man/man1/
-	$(INSTALL) -m 0644 whois.conf.5 $(BASEDIR)$(prefix)/share/man/man5/
+	$(INSTALL) -d $(BASEDIR)$(prefix)/man/man1/
+	$(INSTALL) -d $(BASEDIR)$(prefix)/man/man5/
+	$(INSTALL) -m 0755 whois $(BASEDIR)$(prefix)/bin/mwhois
+	$(INSTALL) -m 0644 whois.1 $(BASEDIR)$(prefix)/man/man1/mwhois.1
+	$(INSTALL) -m 0644 whois.conf.5 $(BASEDIR)$(prefix)/man/man5/mwhois.conf.5
 
 install-mkpasswd: mkpasswd
 	$(INSTALL) -d $(BASEDIR)$(prefix)/bin/
-	$(INSTALL) -d $(BASEDIR)$(prefix)/share/man/man1/
+	$(INSTALL) -d $(BASEDIR)$(prefix)/man/man1/
 	$(INSTALL) -m 0755 mkpasswd $(BASEDIR)$(prefix)/bin/
-	$(INSTALL) -m 0644 mkpasswd.1 $(BASEDIR)$(prefix)/share/man/man1/
+	$(INSTALL) -m 0644 mkpasswd.1 $(BASEDIR)$(prefix)/man/man1/
 
 install-pos:
 	cd po && $(MAKE) install
