34 lines
637 B
Makefile
34 lines
637 B
Makefile
# $NetBSD: Makefile,v 1.2 2011/09/06 21:30:12 riz Exp $
|
|
|
|
PROG= devpubd
|
|
SRCS= devpubd.c
|
|
MAN= devpubd.8
|
|
WARNS= 4
|
|
|
|
BINDIR?= /sbin
|
|
|
|
CPPFLAGS+= -DDEVPUBD_RUN_HOOKS=\"/libexec/devpubd-run-hooks\"
|
|
|
|
SCRIPTS= devpubd-run-hooks
|
|
SCRIPTSDIR_devpubd-run-hooks= /libexec
|
|
|
|
.PATH: ${.CURDIR}/hooks
|
|
HOOKS= 01-makedev
|
|
SCRIPTS+= ${HOOKS:C,^,hooks/,}
|
|
.for f in ${HOOKS}
|
|
SCRIPTSDIR_hooks/${f}= /libexec/devpubd-hooks
|
|
.endfor
|
|
|
|
LDADD+= -lprop
|
|
DPADD+= ${LIBPROP}
|
|
|
|
CLEANFILES= devpubd-run-hooks
|
|
|
|
.for f in devpubd-run-hooks
|
|
${f}: ${f}.in
|
|
${TOOL_SED} -e 's,@HOOKSDIR@,/libexec/devpubd-hooks,g' \
|
|
${.CURDIR}/${f}.in > $@
|
|
.endfor
|
|
|
|
.include <bsd.prog.mk>
|