Makefile revision 137675
1# ex:ts=8
2#
3# $FreeBSD: head/usr.sbin/amd/include/Makefile 137675 2004-11-13 20:40:32Z bz $
4#
5# Makefile for amd
6# 	This file is under a "BSD" copyright (c) by David O'Brien 1998.
7#	Portions derived from amd/libamu/Makefile
8#	$NetBSD: Makefile,v 1.8 1998/08/08 22:33:37 christos Exp $
9
10SRCS=	config_local.h
11.if defined(NO_NIS)
12SRCS+=	localconfig.h
13.endif
14CLEANFILES=	${SRCS}
15
16all depend: ${SRCS}
17
18config_local.h: newvers.sh
19	@rm -f ${.TARGET}
20	sh ${.ALLSRC} ${.CURDIR}/../../../sys/conf/newvers.sh > ${.TARGET}
21
22localconfig.h:
23	@rm -f ${.TARGET}
24	@echo "/* NIS disabled by NO_NIS make.conf option */" >> ${.TARGET}
25	@echo "#undef HAVE_MAP_NIS" >> ${.TARGET}
26
27.include <bsd.prog.mk>
28