By default, install command preserves mtime, and files in the source tree
always have older mtime than a file created by touch command, in this case
${.OBJDIR}/openssl/.dummy, even though it's created earlier by dependency.
Since .dummy is newer, header files get created in objdir at install target
and that requires write permission on ${.OBJDIR}.
.endif
openssl/evp.h: openssl/.dummy ${LCRYPTO_SRC}/crypto/evp/evp.h
- ${INSTALL} -C -m 444 ${.ALLSRC:Nopenssl/.dummy} ${.TARGET}
+ cp ${.ALLSRC:Nopenssl/.dummy} ${.TARGET}
SRCS+= ${HDRS:T:S;^;openssl/;}
.for h in ${HDRS:S,^,${LCRYPTO_SRC}/,}
openssl/${h:T}: openssl/.dummy ${h}
- ${INSTALL} -C -m 444 ${h} openssl
+ cp ${h} openssl
.endfor
# mkdir the required directory as its own target, so multiple