Index: unnethack/sys/autoconf/Makefile.top
===================================================================
--- unnethack.orig/sys/autoconf/Makefile.top	2010-09-06 08:01:02.000000000 +0400
+++ unnethack/sys/autoconf/Makefile.top	2010-09-06 08:02:38.000000000 +0400
@@ -45,7 +45,7 @@
 # These must agree with the definitions in unixconf.h
 
 # Defs. for non file areas support.
-GAMEDIR  = $(PREFIX)/unnethackdir
+GAMEDIR  = $(DESTDIR)/$(PREFIX)/unnethackdir
 VARDIR = $(GAMEDIR)
 FILE_AREA_VAR = $(VARDIR)
 FILE_AREA_SAVE = $(VARDIR)/save
@@ -54,7 +54,7 @@
 FILE_AREA_DOC = $(GAMEDIR)
 FILE_AREA_BONES = $(FILE_AREA_VAR)
 FILE_AREA_LEVL = $(FILE_AREA_VAR)
-SHELLDIR = $(PREFIX)/bin
+SHELLDIR = $(DESTDIR)/$(PREFIX)/bin
 
 # Shareable (architecture independent) data files which are not candidates
 # for inclusion in DLB libraries (ND) and which are (D). Port specific files
