diff options
Diffstat (limited to 'usr.sbin/amd/include/Makefile')
| -rw-r--r-- | usr.sbin/amd/include/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/amd/include/Makefile b/usr.sbin/amd/include/Makefile index d3cf00021203..7fa54aefe69a 100644 --- a/usr.sbin/amd/include/Makefile +++ b/usr.sbin/amd/include/Makefile @@ -8,6 +8,9 @@ # $NetBSD: Makefile,v 1.8 1998/08/08 22:33:37 christos Exp $ SRCS= config_local.h +.if defined(NO_NIS) +SRCS+= localconfig.h +.endif CLEANFILES= ${SRCS} all depend: ${SRCS} @@ -16,4 +19,9 @@ config_local.h: newvers.sh @rm -f ${.TARGET} sh ${.ALLSRC} ${.CURDIR}/../../../sys/conf/newvers.sh > ${.TARGET} +localconfig.h: + @rm -f ${.TARGET} + @echo "/* NIS disabled by NO_NIS make.conf option */" >> ${.TARGET} + @echo "#undef HAVE_MAP_NIS" >> ${.TARGET} + .include <bsd.prog.mk> |
