Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/dhcpcd/libexec/dhcpcd-hooks Fix building 50-ypbind



details:   https://anonhg.NetBSD.org/src/rev/0e0620541842
branches:  trunk
changeset: 352447:0e0620541842
user:      roy <roy%NetBSD.org@localhost>
date:      Sat Apr 01 19:02:58 2017 +0000

description:
Fix building 50-ypbind

diffstat:

 external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile |  15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diffs (42 lines):

diff -r 5969ee848682 -r 0e0620541842 external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile
--- a/external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile Sat Apr 01 17:34:21 2017 +0000
+++ b/external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile Sat Apr 01 19:02:58 2017 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.1 2017/03/31 21:02:09 roy Exp $
+# $NetBSD: Makefile,v 1.2 2017/04/01 19:02:58 roy Exp $
 #
 
 .include <bsd.own.mk>
 
 .include "../../Makefile.inc"
 HOOKSRC=               ${DIST}/hooks
-.PATH:                 ${HOOKSRC}
+.PATH:                 ${HOOKSRC} ${OBJDIR}
 
 HOOKS=                 01-test 02-dump 20-resolv.conf 30-hostname
 HOOKS+=                        50-ntp.conf
@@ -14,14 +14,23 @@
 FILESDIR=              /libexec/dhcpcd-hooks
 
 EGHOOKS=               10-wpa_supplicant 15-timezone 29-lookup-hostname
-EGHOOKS+=              50-ypbind
+MKEGHOOKS=             50-ypbind
+CLEANFILES+=           50-ypbind
 
 .if ${MKSHARE} != "no"
 EGFILES=               ${EGHOOKS:C,^,${HOOKSRC}/,}
+EGFILES+=              ${MKEGHOOKS:C,^,${.OBJDIR}/,}
 FILES+=                        ${EGFILES}
 .for f in ${EGFILES}
 FILESDIR_${f}=         /usr/share/examples/dhcpcd/hooks
 .endfor
 .endif
 
+.SUFFIXES:             .in
+
+all:   ${HOOKS} ${EGHOOKS} ${MKEGHOOKS}
+
+.in:   ../../Makefile.inc
+       ${TOOL_SED} ${SED_SYS} $< > $@
+
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index