$OpenBSD: patch-sgmlfmt_Makefile,v 1.1 2007/10/26 21:29:30 jasper Exp $ --- sgmlfmt/Makefile.orig Tue Sep 15 23:05:39 1998 +++ sgmlfmt/Makefile Fri Oct 26 23:26:37 2007 @@ -2,12 +2,12 @@ FILES= sgmlfmt CLEANFILES= sgmlfmt -MAN1= sgmlfmt.1 +MAN= sgmlfmt.1 all: sgmlfmt sgmlfmt: sgmlfmt.pl -.if exists(/usr/bin/perl5) +.if exists(/usr/bin/perl) sed -e 's|##PERL##|/usr/bin/perl|' -e 's|##PREFIX##|${PREFIX}|' < sgmlfmt.pl > sgmlfmt .else sed -e 's|##PERL##|${PREFIX}/bin/perl|' -e 's|##PREFIX##|${PREFIX}|' < sgmlfmt.pl > sgmlfmt @@ -15,6 +15,6 @@ sgmlfmt: sgmlfmt.pl afterinstall: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${FILES} \ - ${BINDIR} + $(DESTDIR)${BINDIR} .include