From: Lionel Sambuc Date: Thu, 17 Jan 2013 14:47:23 +0000 (+0100) Subject: drivers/ramdisk/Makefile fixup X-Git-Tag: v3.2.1~92 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=f0a513440da6d500035110ce304a8f0559e28c46;p=minix.git drivers/ramdisk/Makefile fixup Change-Id: I481830f19b650ff0d93bf319ca4d8e901657b8f8 --- 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