Home | History | Annotate | Line # | Download | only in lorder
Makefile revision 1.7
      1 #	$NetBSD: Makefile,v 1.7 2007/01/09 17:49:56 ginsbach Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 COMPATOBJ!=	cd ${.CURDIR}/../compat && ${PRINTOBJDIR}
      6 .-include	"${COMPATOBJ}/defs.mk"
      7 
      8 TIMESTAMP=	${TOOLDIR}/bin/${_TOOL_PREFIX}lorder
      9 
     10 CLEANFILES+=	lorder
     11 
     12 .PATH: ${.CURDIR}/../../usr.bin/lorder
     13 
     14 .include <bsd.hostprog.mk>
     15 
     16 BUILD_OSTYPE!=	uname -s
     17 BUILD_OSVERSION!= uname -r | sed -e 's,\([0-9]*\.[0-9]*\.*,\1,'
     18 
     19 install: ${TIMESTAMP}
     20 ${TIMESTAMP}: lorder
     21 	${HOST_INSTALL_FILE} -m ${BINMODE} ${.ALLSRC} ${.TARGET}
     22 
     23 lorder: lorder.sh
     24 .if ${BUILD_OSTYPE} == "Darwin" && ${BUILD_OSVERSION} < 8.0
     25 	sed -e "s,/bin/sh,${HOST_BSHELL},g" \
     26 	    -e "/join/s/,/ /g" < ${.ALLSRC} > ${.TARGET}
     27 .else
     28 	sed -e "s,/bin/sh,${HOST_BSHELL},g" < ${.ALLSRC} > ${.TARGET}
     29 .endif
     30 
     31 realall: lorder
     32