$NetBSD$

--- ./texk/texdoctk/Makefile.in.orig	2006-01-18 06:41:51.000000000 +0900
+++ ./texk/texdoctk/Makefile.in	2010-10-28 10:24:29.000000000 +0900
@@ -14,10 +14,10 @@
 install-data:: 
 
 install-exec:
-	-$(SHELL) $(srcdir)/../mkinstalldirs $(scriptdir)
+	-$(SHELL) $(srcdir)/../mkinstalldirs ${DESTDIR}$(scriptdir)
 	for s in texdoctk; do \
-	  rm -f $(scriptdir)/$$s ; \
-	  $(INSTALL_SCRIPT) $(srcdir)/$$s $(scriptdir)/$$s; \
+	  rm -f ${DESTDIR}$(scriptdir)/$$s ; \
+	  $(INSTALL_SCRIPT) $(srcdir)/$$s ${DESTDIR}$(scriptdir)/$$s; \
 	done
 
 ac_include ../make/clean.mk
