2007-01-11 18:10:08 +03:00
|
|
|
# $NetBSD: Makefile,v 1.8 2007/01/11 15:10:08 ginsbach Exp $
|
2002-09-15 21:05:26 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
COMPATOBJ!= cd ${.CURDIR}/../compat && ${PRINTOBJDIR}
|
|
|
|
.-include "${COMPATOBJ}/defs.mk"
|
2001-09-22 08:15:19 +04:00
|
|
|
|
2002-12-08 23:19:56 +03:00
|
|
|
TIMESTAMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}lorder
|
2001-09-22 08:15:19 +04:00
|
|
|
|
2002-09-15 21:05:26 +04:00
|
|
|
CLEANFILES+= lorder
|
|
|
|
|
2001-09-22 08:15:19 +04:00
|
|
|
.PATH: ${.CURDIR}/../../usr.bin/lorder
|
|
|
|
|
2001-09-22 09:02:13 +04:00
|
|
|
.include <bsd.hostprog.mk>
|
|
|
|
|
2007-01-09 20:49:56 +03:00
|
|
|
BUILD_OSTYPE!= uname -s
|
2007-01-11 18:10:08 +03:00
|
|
|
BUILD_OSVERSION!= uname -r | sed -e 's,\([0-9]*\.[0-9]*\).*,\1,'
|
2007-01-09 20:49:56 +03:00
|
|
|
|
2001-09-22 08:15:19 +04:00
|
|
|
install: ${TIMESTAMP}
|
2002-09-15 21:05:26 +04:00
|
|
|
${TIMESTAMP}: lorder
|
2001-11-19 07:47:42 +03:00
|
|
|
${HOST_INSTALL_FILE} -m ${BINMODE} ${.ALLSRC} ${.TARGET}
|
2002-09-15 21:05:26 +04:00
|
|
|
|
|
|
|
lorder: lorder.sh
|
2007-01-09 20:49:56 +03:00
|
|
|
.if ${BUILD_OSTYPE} == "Darwin" && ${BUILD_OSVERSION} < 8.0
|
|
|
|
sed -e "s,/bin/sh,${HOST_BSHELL},g" \
|
|
|
|
-e "/join/s/,/ /g" < ${.ALLSRC} > ${.TARGET}
|
|
|
|
.else
|
2002-09-15 21:05:26 +04:00
|
|
|
sed -e "s,/bin/sh,${HOST_BSHELL},g" < ${.ALLSRC} > ${.TARGET}
|
2007-01-09 20:49:56 +03:00
|
|
|
.endif
|
2002-09-15 21:05:26 +04:00
|
|
|
|
|
|
|
realall: lorder
|