Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files Avoid redefining $PROG target

In rare cases, the PROG target is intentionally redefined before
including, but when that happens a target redefinition
warning is emitting.  This adds a check for a pre-existing $PROG
target before attempting to define it.

It stops warnings from being emitted when loader and loader_tftp
are built.
  • Loading branch information...
commit b4061d6cf8a3f9e959e064a3b5127b0172117fe6 1 parent 58700ca
John Marino authored Sascha Wildner committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  share/mk/
2  share/mk/
@@ -32,12 +32,14 @@ LDADD+= ${OBJCLIBS}
OBJS+= ${SRCS:N*.h:N*.patch:R:S/$/.o/g}
+.if !target(${PROG})
${PROG}: ${OBJS}
.if defined(PROG_CXX)
.else # !defined(SRCS)
Please sign in to comment.
Something went wrong with that request. Please try again.