add-plist-info and add-plist-post targets in bsd.port.mk

Vasil Dimov vd at datamax.bg
Tue May 10 23:19:06 PDT 2005


Is there any reason add-plist-info and add-plist-post targets in
bsd.port.mk are not surrounded by .if !target(...) ... .endif ?

Shouldn't they be like the others laying around - add-plist-docs and
generate-plist?

I noticed that because of the warning caused by devel/mingw32-binutils.
This port has redefined add-plist-post target and it seems that there
is no easy way for it to do the things it need in any other way.

It needs to append some dirrm commands at the end of the plist file
AFTER automatically added install-info --delete commands. How could
the be achieved without ugly hacks like redefining add-plist-docs?

sinanica:/usr/ports/devel/mingw32-binutils# make describe
"/usr/ports/Mk/bsd.port.mk", line 4847: warning: duplicate script for target "add-plist-post" ignored
...
-------------- next part --------------
--- bsd.port.mk.orig	Tue May 10 17:15:42 2005
+++ bsd.port.mk	Wed May 11 09:05:11 2005
@@ -4819,6 +4819,7 @@
 .endif
 .endif
 
+.if !target(add-plist-info)
 add-plist-info:
 # Process GNU INFO files at package install/deinstall time
 .if defined(INFO)
@@ -4837,14 +4838,17 @@
 .endif
 .endif
 .endif
+.endif
 
 # If we're installing into a non-standard PREFIX, we need to remove that directory at
 # deinstall-time
+.if !target(add-plist-post)
 add-plist-post:
 .if (${PREFIX} != ${LOCALBASE} && ${PREFIX} != ${X11BASE} && ${PREFIX} != ${LINUXBASE} && ${PREFIX} != "/usr")
 	@${ECHO_CMD} "@unexec rmdir %D 2> /dev/null || true" >> ${TMPPLIST}
 .else
 	@${DO_NADA}
+.endif
 .endif
 
 .if !target(install-rc-script)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 155 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050511/9c0d810f/attachment.bin


More information about the freebsd-ports mailing list