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} 15WFORMAT=0 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