svn commit: r552968 - head/Mk

Baptiste Daroussin bapt at FreeBSD.org
Thu Oct 22 12:48:21 UTC 2020


Author: bapt
Date: Thu Oct 22 12:48:20 2020
New Revision: 552968
URL: https://svnweb.freebsd.org/changeset/ports/552968

Log:
  Use @rmempty
  
  While here, prefer appending to the PLIST_FILES macro rather than creating a custom
  target

Modified:
  head/Mk/bsd.ocaml.mk

Modified: head/Mk/bsd.ocaml.mk
==============================================================================
--- head/Mk/bsd.ocaml.mk	Thu Oct 22 12:46:48 2020	(r552967)
+++ head/Mk/bsd.ocaml.mk	Thu Oct 22 12:48:20 2020	(r552968)
@@ -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)


More information about the svn-ports-all mailing list