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} 15 16atrun.8: atrun.man 17 @${ECHO} Making ${.TARGET:T} from ${.ALLSRC:T}; \ 18 sed -e \ 19 "s@_ATSPOOL_DIR@$(ATSPOOL_DIR)@g; \ 20 s@_ATJOB_DIR@$(ATJOB_DIR)@g; \ 21 s@_ATLIB_DIR@$(ATLIB_DIR)@g; \ 22 s@_LOADAVG_MX@$(LOADAVG_MX)@g;" \ 23 < ${.ALLSRC} > ${.TARGET} 24 25.include <bsd.prog.mk> 26