bf7113376a
programs there; make all Makefiles that use bsd.hostprog.mk include it. Namely turn off MKREPRO and don't make lint, man pages, info files etc. Remove the Makefile.inc files that contained these same settings, and remove the settings from Makefile.host
28 lines
689 B
Makefile
28 lines
689 B
Makefile
# $NetBSD: Makefile,v 1.14 2018/05/01 19:59:47 christos Exp $
|
|
|
|
.include <bsd.hostinit.mk>
|
|
|
|
.-include "${TOOLDIR}/share/compat/defs.mk"
|
|
|
|
TIMESTAMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}lorder
|
|
|
|
CLEANFILES+= lorder
|
|
|
|
.PATH: ${.CURDIR}/../../usr.bin/lorder
|
|
|
|
.include <bsd.hostprog.mk>
|
|
|
|
install: ${TIMESTAMP}
|
|
${TIMESTAMP}: lorder
|
|
${HOST_INSTALL_FILE} -m ${BINMODE} ${.ALLSRC} ${.TARGET}
|
|
|
|
lorder: lorder.sh
|
|
${TOOL_SED} -e "s,/bin/sh,"${HOST_BSHELL:Q}",g" \
|
|
-e "s,{JOIN:=.*},{JOIN:="${TOOL_JOIN:Q}"}," \
|
|
-e "s,{MKTEMP:=.*},{MKTEMP:="${TOOL_MKTEMP:Q}"}," \
|
|
-e "s,{NM:=.*},{NM:="${NM:Q}"}," \
|
|
-e "s,{SED:=.*},{SED:="${TOOL_SED:Q}"}," \
|
|
< ${.ALLSRC} > ${.TARGET}
|
|
|
|
realall: lorder
|