xref: /freebsd/libexec/atrun/Makefile (revision 1e413cf93298b5b97441a21d9a50fdcd0ee9945e)
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
16WFORMAT=0
17
18DPADD=	${LIBPAM} ${LIBUTIL}
19LDADD=	${MINUSLPAM} -lutil
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