From f0a513440da6d500035110ce304a8f0559e28c46 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Thu, 17 Jan 2013 15:47:23 +0100 Subject: [PATCH] drivers/ramdisk/Makefile fixup Change-Id: I481830f19b650ff0d93bf319ca4d8e901657b8f8 --- drivers/ramdisk/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/ramdisk/Makefile b/drivers/ramdisk/Makefile index 456444777..160458bdd 100644 --- a/drivers/ramdisk/Makefile +++ b/drivers/ramdisk/Makefile @@ -97,10 +97,12 @@ ${etc}: ${NETBSDSRCDIR}/etc/${etc} # LSC Force the regeneration of the proto file as it seems sometimes # they are not copied over as needed. +# LSC The test is needed; otherwise install complains about src and dst +# being the same, during in-tree builds # LSC ramdisk rc file != /etc/rc && mtab not empty! .for file in ${EXTRA} ${PROTO} ${PROTO_FILES} ${file}: ${NETBSDSRCDIR}/drivers/ramdisk/${file} .PHONY - ${INSTALL} $> $@ + [ -e $@ ] || ${INSTALL} $> $@ .endfor # Generate dependencies rules for dynamic libraries, if needed -- 2.44.0