$OpenBSD: patch-texk_web2c_alephdir_aleph_mk,v 1.2 2008/10/21 20:57:57 steven Exp $
--- texk/web2c/alephdir/aleph.mk.orig	Mon Aug 25 00:13:57 2008
+++ texk/web2c/alephdir/aleph.mk	Mon Aug 25 00:15:09 2008
@@ -146,7 +146,7 @@ afmts: $(all_afmts)
 
 afmtdir = $(web2cdir)/aleph
 $(afmtdir)::
-	$(SHELL) $(top_srcdir)/../mkinstalldirs $(afmtdir)
+	$(SHELL) $(top_srcdir)/../mkinstalldirs $(DESTDIR)/$(afmtdir)
 
 aleph.fmt: aleph
 	$(dumpenv) $(MAKE) progname=aleph files="omega.ini" prereq-check
@@ -160,6 +160,7 @@ lamed.fmt: aleph
 install-aleph: install-aleph-exec
 install-programs: @ALEPH@ install-aleph-exec
 install-aleph-exec: aleph $(bindir)
-	for p in aleph; do $(INSTALL_LIBTOOL_PROG) $$p $(bindir); done
+	for p in aleph; do $(INSTALL_LIBTOOL_PROG) $$p \
+	  $(DESTDIR)/$(bindir); done
 
 # end of aleph.mk
