xref: /freebsd/libexec/atrun/Makefile (revision bdd1243df58e60e85101c09001d9812a789b6bc4)
1# $FreeBSD$
2
3PACKAGE=at
4MAINSRC=${SRCTOP}/usr.bin/at
5
6.include "${MAINSRC}/Makefile.inc"
7
8PROG=	atrun
9SRCS=	atrun.c gloadavg.c
10MAN=	atrun.8
11
12BINDIR=	${ATLIB_DIR}
13CLEANFILES= ${MAN}
14
15CFLAGS+=-I${MAINSRC} -I${.CURDIR}
16CFLAGS+=-DLOGIN_CAP -DPAM
17
18WARNS?=	2
19WFORMAT=0
20
21LIBADD=	pam util
22
23atrun.8: atrun.man
24	@${ECHO} Making ${.TARGET:T} from ${.ALLSRC:T}; \
25	sed -e \
26		"s@_ATSPOOL_DIR@$(ATSPOOL_DIR)@g; \
27		s@_ATJOB_DIR@$(ATJOB_DIR)@g; \
28		s@_ATLIB_DIR@$(ATLIB_DIR)@g; \
29		s@_LOADAVG_MX@$(LOADAVG_MX)@g;" \
30		< ${.ALLSRC} > ${.TARGET}
31
32.include <bsd.prog.mk>
33