--- Makefile.orig 2009-03-21 16:07:49.000000000 +0300 +++ Makefile 2009-10-24 14:55:55.000000000 +0400 @@ -1,4 +1,8 @@ -prefix=/usr/local +ifdef PREFIX +prefix = $(PREFIX) +else +prefix = '/usr/local' +endif sbindir=$(prefix)/sbin datadir=$(prefix)/share mandir=$(datadir)/man