Merge from vendor branch BIND:
[dragonfly.git] / libexec / atrun / Makefile
1 # $FreeBSD: src/libexec/atrun/Makefile,v 1.7.2.2 2001/04/25 10:40:47 ru Exp $
2 # $DragonFly: src/libexec/atrun/Makefile,v 1.2 2003/06/17 04:27:07 dillon 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
12 BINDIR= ${ATLIB_DIR}
13 CLEANFILES= ${MAN}
14
15 CFLAGS+=-I${MAINSRC} -I${.CURDIR}
16
17 atrun.8: atrun.man
18         @${ECHO} Making ${.TARGET:T} from ${.ALLSRC:T}; \
19         sed -e \
20                 "s@_ATSPOOL_DIR@$(ATSPOOL_DIR)@g; \
21                 s@_ATJOB_DIR@$(ATJOB_DIR)@g; \
22                 s@_ATLIB_DIR@$(ATLIB_DIR)@g; \
23                 s@_LOADAVG_MX@$(LOADAVG_MX)@g;" \
24                 < ${.ALLSRC} > ${.TARGET}
25
26 .include <bsd.prog.mk>