$NetBSD$ --- ./texk/web2c/omegadir-1.15/omega.mk.orig 2006-01-18 06:41:51.000000000 +0900 +++ ./texk/web2c/omegadir-1.15/omega.mk 2010-10-28 10:24:30.000000000 +0900 @@ -140,8 +140,8 @@ # The actual binary executables and pool files. install-omega-programs: $(omega_programs) - $(SHELL) $(top_srcdir)/../mkinstalldirs $(bindir) - for p in omega; do $(INSTALL_LIBTOOL_PROG) $(bindir) $$p; done + $(SHELL) $(top_srcdir)/../mkinstalldirs ${DESTDIR}$(bindir) + for p in omega; do $(INSTALL_LIBTOOL_PROG) ${DESTDIR}$(bindir) $$p; done cd otps && $(MAKE) $(install_makeargs) install-programs cd omegafonts && $(MAKE) $(install_makeargs) install-programs @@ -149,25 +149,25 @@ # plus the equivalents for e-TeX, Omega, pdfTeX, and pdfeTeX. install-omega-links: install-omega-programs cd omegafonts && $(MAKE) $(install_makeargs) install-links - cd $(bindir) && (rm -f iniomega viromega; \ + cd ${DESTDIR}$(bindir) && (rm -f iniomega viromega; \ $(LN) omega iniomega; $(LN) omega viromega) # The ugly "" avoids a syntax error in case the lists are empty. test -z "$(ofmts)" || \ for f in ""$(ofmts); do base=`basename $$f .fmt`; \ - (cd $(bindir) && (rm -f $$base; $(LN) omega $$base)); done + (cd ${DESTDIR}$(bindir) && (rm -f $$base; $(LN) omega $$base)); done # Always do plain.*, so examples from the TeXbook (etc.) will work. install-omega-dumps: install-omega-fmts install-omega-fmts: ofmts - $(SHELL) $(top_srcdir)/../mkinstalldirs $(fmtdir) + $(SHELL) $(top_srcdir)/../mkinstalldirs ${DESTDIR}$(fmtdir) test -z "$(all_ofmts)" || \ for f in ""$(all_ofmts); \ - do $(INSTALL_DATA) $$f $(fmtdir)/$$f; done + do $(INSTALL_DATA) $$f ${DESTDIR}$(fmtdir)/$$f; done # Auxiliary files. install-omega-data:: - $(SHELL) $(top_srcdir)/../mkinstalldirs $(texpooldir) - $(INSTALL_DATA) omega.pool $(texpooldir)/omega.pool - $(INSTALL_DATA) $(srcdir)/tiedir/tie.1 $(mandir)/tie.$(manext) + $(SHELL) $(top_srcdir)/../mkinstalldirs ${DESTDIR}$(texpooldir) + $(INSTALL_DATA) omega.pool ${DESTDIR}$(texpooldir)/omega.pool + $(INSTALL_DATA) $(srcdir)/tiedir/tie.1 ${DESTDIR}$(mandir)/tie.$(manext) # end of omega.mk