summaryrefslogtreecommitdiffstats
path: root/usr.sbin/amd/include/Makefile
blob: 7fa54aefe69af69e70608e555cf87cd3d1c69f63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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 $

SRCS=	config_local.h
.if defined(NO_NIS)
SRCS+=	localconfig.h
.endif
CLEANFILES=	${SRCS}

all depend: ${SRCS}

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>
OpenPOWER on IntegriCloud