Kamil Dudka d3a965
diff --git a/include/builddefs.in b/include/builddefs.in
Kamil Dudka d3a965
index d054a56..10b0cd4 100644
Kamil Dudka d3a965
--- a/include/builddefs.in
Kamil Dudka d3a965
+++ b/include/builddefs.in
Kamil Dudka d3a965
@@ -28,14 +28,14 @@ PKG_RELEASE	= @pkg_release@
Thomas Woerner b6b9a6
 PKG_VERSION	= @pkg_version@
Thomas Woerner b6b9a6
 PKG_PLATFORM	= @pkg_platform@
Thomas Woerner b6b9a6
 PKG_DISTRIBUTION= @pkg_distribution@
Thomas Woerner b6b9a6
-PKG_BIN_DIR	= @bindir@
Thomas Woerner b6b9a6
-PKG_SBIN_DIR	= @sbindir@
Thomas Woerner b6b9a6
-PKG_LIB_DIR	= @libdir@@libdirsuffix@
Thomas Woerner b6b9a6
-PKG_DEVLIB_DIR	= @libexecdir@@libdirsuffix@
Thomas Woerner b6b9a6
-PKG_INC_DIR	= @includedir@
Thomas Woerner b6b9a6
-PKG_MAN_DIR	= @mandir@
Thomas Woerner b6b9a6
-PKG_DOC_DIR	= @datadir@/doc/@pkg_name@
Thomas Woerner b6b9a6
-PKG_LOCALE_DIR	= @datadir@/locale
Thomas Woerner b6b9a6
+PKG_BIN_DIR	= $(DESTDIR)@bindir@
Thomas Woerner b6b9a6
+PKG_SBIN_DIR	= $(DESTDIR)@sbindir@
Thomas Woerner b6b9a6
+PKG_LIB_DIR	= $(DESTDIR)@libdir@@libdirsuffix@
Thomas Woerner b6b9a6
+PKG_DEVLIB_DIR	= $(DESTDIR)@libexecdir@@libdirsuffix@
Thomas Woerner b6b9a6
+PKG_INC_DIR	= $(DESTDIR)@includedir@
Thomas Woerner b6b9a6
+PKG_MAN_DIR	= $(DESTDIR)@mandir@
Thomas Woerner b6b9a6
+PKG_DOC_DIR	= $(DESTDIR)@datadir@/doc/@pkg_name@-@pkg_version@
Thomas Woerner b6b9a6
+PKG_LOCALE_DIR	= $(DESTDIR)@datadir@/locale
Thomas Woerner b6b9a6
 
Thomas Woerner b6b9a6
 CC		= @cc@
Thomas Woerner b6b9a6
 AWK		= @awk@
Kamil Dudka d3a965
diff --git a/include/buildmacros b/include/buildmacros
Kamil Dudka d3a965
index 17423c0..3118a17 100644
Kamil Dudka d3a965
--- a/include/buildmacros
Kamil Dudka d3a965
+++ b/include/buildmacros
Kamil Dudka d3a965
@@ -40,7 +40,7 @@ OBJECTS = $(ASFILES:.s=.o) \
Thomas Woerner b6b9a6
 	  $(LFILES:.l=.o) \
Thomas Woerner b6b9a6
 	  $(YFILES:%.y=%.tab.o)
Thomas Woerner b6b9a6
 
Kamil Dudka d3a965
-INSTALL	= $(TOPDIR)/include/install-sh -o $(PKG_USER) -g $(PKG_GROUP)
Kamil Dudka d3a965
+INSTALL	= $(TOPDIR)/include/install-sh
Thomas Woerner b6b9a6
 
Thomas Woerner b6b9a6
 SHELL = /bin/sh
Thomas Woerner b6b9a6
 IMAGES_DIR = $(TOPDIR)/all-images