1 # $NetBSD: Makefile,v 1.2 2005/05/31 03:53:59 christos Exp $ 2 3 .include <bsd.own.mk> 4 5 .PATH.sh: ${.CURDIR}/../../usr.sbin/genassym 6 7 COMPATOBJ!= cd ${.CURDIR}/../compat && ${PRINTOBJDIR} 8 .-include "${COMPATOBJ}/defs.mk" 9 10 11 TIMESTAMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}genassym 12 13 CLEANFILES+= genassym 14 15 .include <bsd.hostprog.mk> 16 17 install: ${TIMESTAMP} 18 ${TIMESTAMP}: genassym 19 ${HOST_INSTALL_FILE} -m ${BINMODE} ${.ALLSRC} ${.TARGET} 20 21 genassym: genassym.sh 22 sed -e "s,/bin/sh,${HOST_BSHELL},g" < ${.ALLSRC} > ${.TARGET} 23 24 realall: genassym 25