Sync atrun with FreeBSD:
[dragonfly.git] / libexec / atrun / Makefile
1 # $FreeBSD: src/libexec/atrun/Makefile,v 1.15 2007/10/01 18:17:23 ru Exp $
2 # $DragonFly: src/libexec/atrun/Makefile,v 1.3 2004/09/20 19:32:19 joerg Exp $
3
4 MAINSRC=${.CURDIR}/../../usr.bin/at
5
6 .include "${MAINSRC}/Makefile.inc"
7
8 PROG=   atrun
9 SRCS=   atrun.c gloadavg.c
10 MAN=    atrun.8
11 WARNS?= 6
12
13 BINDIR= ${ATLIB_DIR}
14 CLEANFILES= ${MAN}
15
16 CFLAGS+=-I${MAINSRC} -I${.CURDIR}
17 CFLAGS+=-DLOGIN_CAP -DPAM
18 WFORMAT=0
19
20 DPADD=  ${LIBPAM} ${LIBUTIL}
21 LDADD=  ${MINUSLPAM} -lutil
22
23 atrun.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>