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