aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.ocaml.mk
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2020-10-22 12:48:20 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2020-10-22 12:48:20 +0000
commit1f0ff4175179822d7e7fd757a1f55155ab1ca737 (patch)
treea1563f0262ac76bc14cbace377dcfd9108420002 /Mk/bsd.ocaml.mk
parentc275c0a089361ae548c672c0c5760f324c438eb7 (diff)
downloadports-1f0ff4175179822d7e7fd757a1f55155ab1ca737.tar.gz
ports-1f0ff4175179822d7e7fd757a1f55155ab1ca737.zip
Use @rmempty
While here, prefer appending to the PLIST_FILES macro rather than creating a custom target
Notes
Notes: svn path=/head/; revision=552968
Diffstat (limited to 'Mk/bsd.ocaml.mk')
-rw-r--r--Mk/bsd.ocaml.mk7
1 files changed, 1 insertions, 6 deletions
diff --git a/Mk/bsd.ocaml.mk b/Mk/bsd.ocaml.mk
index c74330f95620..25355b2d6ec8 100644
--- a/Mk/bsd.ocaml.mk
+++ b/Mk/bsd.ocaml.mk
@@ -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)