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