Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / openresolv / sbin / resolvconf / Makefile
blobdb2af62a0067a066b956890e749e749fc599a9df
1 # $NetBSD: Makefile,v 1.2 2009/12/03 10:28:37 roy Exp $
4 .include <bsd.own.mk>
6 DIST= ${NETBSDSRCDIR}/external/bsd/openresolv/dist
7 .PATH: ${DIST}
9 SCRIPTS= resolvconf
10 SCRIPTSDIR= /sbin
12 FILES= libc dnsmasq named unbound
13 FILESDIR= /libexec/resolvconf
14 # We should not have to do this ...
15 .for f in ${FILES}
16 FILESBUILD_$f= yes
17 .endfor
19 MAN= resolvconf.conf.5 resolvconf.8
21 CLEANFILES= ${SCRIPTS} ${FILES} ${MAN}
23 CMD1= \1 status >/dev/null 2>\&1
24 CMD2= \1 restart
25 RESTARTCMD= /etc/rc.d/${CMD1} \&\& /etc/rc.d/${CMD2}
26 .for f in ${SCRIPTS} ${FILES} ${MAN}
27 ${f}: ${f}.in
28 ${TOOL_SED} -e 's:@PREFIX@::g' \
29 -e 's:@SYSCONFDIR@:/etc:g' \
30 -e 's:@LIBEXECDIR@:/libexec/resolvconf:g' \
31 -e 's:@VARDIR@:/var/run/resolvconf:g' \
32 -e 's:@RESTARTCMD \(.*\)@:${RESTARTCMD}:g' \
33 ${DIST}/${f}.in > $@
34 .endfor
36 .include <bsd.prog.mk>