Use @rmempty
While here, prefer appending to the PLIST_FILES macro rather than creating a custom target
This commit is contained in:
parent
c275c0a089
commit
1f0ff41751
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=552968
@ -181,12 +181,7 @@ ocaml-ldconfig:
|
||||
.endif
|
||||
|
||||
.if defined(USE_OCAML_WASH)
|
||||
. if !target(ocaml-wash)
|
||||
_USES_install+= 745:ocaml-wash
|
||||
ocaml-wash:
|
||||
# If ld.conf is empty
|
||||
@${ECHO_CMD} "@postunexec if [ ! -s %D/${OCAML_LDCONF} ]; then ${RM} %D/${OCAML_LDCONF}; fi || true" >> ${TMPPLIST}
|
||||
. endif
|
||||
PLIST_FILES+= "@rmempty ${OCAML_LDCONF}"
|
||||
.endif
|
||||
|
||||
.endif #!defined(OCAML_include)
|
||||
|
Loading…
Reference in New Issue
Block a user