NetBSD/distrib/utils/x_sh/Makefile

33 lines
956 B
Makefile
Raw Normal View History

1998-10-08 05:08:24 +04:00
# $NetBSD: Makefile,v 1.7 1998/10/08 01:08:24 ross Exp $
# Build a smaller sh (e.g. for boot media)
#
1998-10-08 04:44:16 +04:00
# Be very careful before attempting to "clean up" the ugly location
# of the bin/sh source directory. The problem is that crunchgen(1)
# doesn't run from this directory, thus creating a triple-indirect
# sh Makefile include and requiring the whole thing to work from
# different levels in the tree.
#
# We could just use only the BSDSRCDIR assignment, but right now the use
# of BSDSRCDIR can be deleted here, and so I didn't want to depend on it
1998-10-08 04:44:16 +04:00
# in case someday we completely nuke the rarely used BSDSRCDIR.
NOMAN=1
.include <bsd.own.mk>
.for i in ../../bin/sh \
../../../bin/sh \
../../../../bin/sh
.if exists(${.CURDIR:H}/$i/Makefile)
SRCDIR?= ${.CURDIR:H}/$i
.endif
.endfor
SRCDIR?= ${BSDSRCDIR}/bin/sh
CPPFLAGS+= -I${SRCDIR} -DSMALL
1998-03-29 13:22:06 +04:00
.PATH: ${SRCDIR} ${SRCDIR}/bltin ${SRCDIR}/../../usr.bin/printf
1998-03-29 13:22:06 +04:00
.include "${SRCDIR}/Makefile"