aboutsummaryrefslogtreecommitdiff
path: root/libexec/atrun/Makefile
blob: 118bed19504293eeed671c5b9a2c5fb04d44121a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#	$Id$

MAINSRC= ${.CURDIR}/../../usr.bin/at

.include "$(MAINSRC)/Makefile.inc"

PROG=	atrun
MAN8=	atrun.8
SRCS=   atrun.c gloadavg.c

BINDIR= $(ATLIB_DIR)
MANSRC= .
CLEANFILES += ${MAN8}
MANDEPEND = ${MAN8}

CFLAGS+= -I$(MAINSRC) -I${.CURDIR}

${MAN8}: atrun.man
	sed -e \
		"s@_ATSPOOL_DIR@$(ATSPOOL_DIR)@g; \
		s@_ATJOB_DIR@$(ATJOB_DIR)@g; \
		s@_ATLIB_DIR@$(ATLIB_DIR)@g; \
		s@_LOADAVG_MX@$(LOADAVG_MX)@g;" \
		< $? > $@

.include <bsd.prog.mk>