From 0fe7ea2a0f4739b10996c0ff99a724375d59aa58 Mon Sep 17 00:00:00 2001 From: uebayasi Date: Wed, 16 Feb 2011 16:20:06 +0000 Subject: [PATCH] Generate MAKEDEV only when really necessary. Write dependency correctly. --- etc/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/Makefile b/etc/Makefile index b82272b83839..99ff4c93a03f 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.385 2011/02/16 15:52:51 uebayasi Exp $ +# $NetBSD: Makefile,v 1.386 2011/02/16 16:20:06 uebayasi Exp $ # from: @(#)Makefile 8.7 (Berkeley) 5/25/95 # Environment variables without default values: @@ -173,7 +173,8 @@ distribution: .PHONY .MAKE check_DESTDIR distrib-dirs CLEANFILES+= MAKEDEV -MAKEDEV: .EXEC +MAKEDEV: ${.CURDIR}/MAKEDEV.awk ${.CURDIR}/MAKEDEV.tmpl \ + ${.CURDIR}/etc.${MACHINE}/MAKEDEV.conf ${_MKTARGET_CREATE} MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \ NETBSDSRCDIR=${NETBSDSRCDIR:Q} \