freebsd-nq/usr.sbin/amd/include/Makefile
Cy Schubert 3dd30bd184 Switch from .CURDIR to the simpler, more legible SRCTOP.
Suggested by:	emaste
X-MFC-with:	upcoming amd upgrade
2016-09-14 01:47:01 +00:00

30 lines
634 B
Makefile

# ex:ts=8
#
# $FreeBSD$
#
# Makefile for amd
# This file is under a "BSD" copyright (c) by David O'Brien 1998.
# Portions derived from amd/libamu/Makefile
# $NetBSD: Makefile,v 1.8 1998/08/08 22:33:37 christos Exp $
.include <src.opts.mk>
SRCS= config_local.h
.if ${MK_NIS} == "no"
SRCS+= localconfig.h
.endif
CLEANFILES= ${SRCS}
all depend: ${SRCS}
config_local.h: newvers.sh ${SRCTOP}/sys/conf/newvers.sh
@rm -f ${.TARGET}
sh ${.ALLSRC} > ${.TARGET}
localconfig.h:
@rm -f ${.TARGET}
@echo "/* NIS disabled by WITHOUT_NIS src.conf option */" >> ${.TARGET}
@echo "#undef HAVE_MAP_NIS" >> ${.TARGET}
.include <bsd.prog.mk>