bsd.prog.mk: Avoid redefining $PROG target
authorJohn Marino <netbsd@marino.st>
Thu, 4 Oct 2012 16:17:47 +0000 (18:17 +0200)
committerSascha Wildner <saw@online.de>
Thu, 4 Oct 2012 16:57:21 +0000 (18:57 +0200)
commitb4061d6cf8a3f9e959e064a3b5127b0172117fe6
tree973c08f3fe0e37bdac0f3deb65ffe1627d0daaed
parent58700ca72fc998e00907566b6d012e53056da342
bsd.prog.mk: Avoid redefining $PROG target

In rare cases, the PROG target is intentionally redefined before
including bsd.prog.mk, 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.
share/mk/bsd.prog.mk