xref: /dragonfly/libexec/atrun/Makefile (revision 1de703da)
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
4MAINSRC=${.CURDIR}/../../usr.bin/at
5
6.include "${MAINSRC}/Makefile.inc"
7
8PROG=	atrun
9SRCS=	atrun.c gloadavg.c
10MAN=	atrun.8
11
12BINDIR=	${ATLIB_DIR}
13CLEANFILES= ${MAN}
14
15CFLAGS+=-I${MAINSRC} -I${.CURDIR}
16
17atrun.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>
27