Replace previous change by different test
. so contents always get overwritten in out-of-tree case
This commit is contained in:
parent
f0a513440d
commit
4c6c911fdc
1 changed files with 8 additions and 3 deletions
|
@ -97,13 +97,18 @@ ${etc}: ${NETBSDSRCDIR}/etc/${etc}
|
||||||
|
|
||||||
# LSC Force the regeneration of the proto file as it seems sometimes
|
# LSC Force the regeneration of the proto file as it seems sometimes
|
||||||
# they are not copied over as needed.
|
# 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!
|
# LSC ramdisk rc file != /etc/rc && mtab not empty!
|
||||||
|
# BJG if ${.CURDIR} == ${.OBJDIR}, we are building in-tree and install
|
||||||
|
# shouldn't try to install the originals over the originals. Otherwise
|
||||||
|
# we are building out-of-tree and the contents should be copied
|
||||||
|
# unconditionally in case the contents have changed after the first copy.
|
||||||
|
.if ${.CURDIR} != ${.OBJDIR}
|
||||||
|
CLEANFILES += ${EXTRA} ${PROTO} ${PROTO_FILES}
|
||||||
.for file in ${EXTRA} ${PROTO} ${PROTO_FILES}
|
.for file in ${EXTRA} ${PROTO} ${PROTO_FILES}
|
||||||
${file}: ${NETBSDSRCDIR}/drivers/ramdisk/${file} .PHONY
|
${file}: ${NETBSDSRCDIR}/drivers/ramdisk/${file} .PHONY
|
||||||
[ -e $@ ] || ${INSTALL} $> $@
|
${INSTALL} $> $@
|
||||||
.endfor
|
.endfor
|
||||||
|
.endif
|
||||||
|
|
||||||
# Generate dependencies rules for dynamic libraries, if needed
|
# Generate dependencies rules for dynamic libraries, if needed
|
||||||
.for lib in ${PROG_LIBS}
|
.for lib in ${PROG_LIBS}
|
||||||
|
|
Loading…
Reference in a new issue