1# $FreeBSD$ 2 3MAINSRC= ${.CURDIR}/../../usr.bin/at 4 5.include "$(MAINSRC)/Makefile.inc" 6 7PROG= atrun 8MAN8= atrun.8 9SRCS= atrun.c gloadavg.c 10 11BINDIR= $(ATLIB_DIR) 12MANSRC= . 13CLEANFILES += ${MAN8} 14MANDEPEND = ${MAN8} 15 16CFLAGS+= -I$(MAINSRC) -I${.CURDIR} 17 18${MAN8}: atrun.man 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 < $? > $@ 25 26.include <bsd.prog.mk> 27