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 Try a better syntax...



details:   https://anonhg.NetBSD.org/src/rev/a98f26948221
branches:  trunk
changeset: 1008785:a98f26948221
user:      roy <roy%NetBSD.org@localhost>
date:      Fri Apr 03 15:02:11 2020 +0000

description:
Try a better syntax for building 30-hostname

diffstat:

 external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (30 lines):

diff -r 30ef961c803d -r a98f26948221 external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile
--- a/external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile Fri Apr 03 14:04:27 2020 +0000
+++ b/external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile Fri Apr 03 15:02:11 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2020/04/02 14:05:28 roy Exp $
+# $NetBSD: Makefile,v 1.5 2020/04/03 15:02:11 roy Exp $
 #
 
 .include <bsd.own.mk>
@@ -10,15 +10,14 @@
 FILES=         01-test 02-dump 20-resolv.conf 30-hostname
 FILES+=                50-ntp.conf
 
-FILESBUILD_30-hostname=   YES
-
 FILESDIR=      /libexec/dhcpcd-hooks
 
+FILESBUILD_30-hostname=   YES
 CLEANFILES=    30-hostname
 
-.for f in ${FILES}
-${f}:  ../../Makefile.inc ${f}.in
-       ${TOOL_SED} ${SED_SYS} ${HOOKSRC}/${f}.in > $@
-.endfor
+.SUFFIXES:     .in
+
+.in:   ../../Makefile.inc
+       ${TOOL_SED} ${SED_SYS} $< > $@
 
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index