mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-23 18:14:56 +01:00
Don't create a ${PROG} target if it already exists.
This commit is contained in:
parent
654377748d
commit
6fe6af9f74
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33600
@ -1,5 +1,5 @@
|
||||
# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
|
||||
# $Id: bsd.prog.mk,v 1.59 1997/12/18 12:56:52 bde Exp $
|
||||
# $Id: bsd.prog.mk,v 1.60 1998/02/07 17:19:06 helbig Exp $
|
||||
|
||||
.if exists(${.CURDIR}/../Makefile.inc)
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
@ -25,6 +25,7 @@ LDFLAGS+= -static
|
||||
.endif
|
||||
|
||||
.if defined(PROG)
|
||||
.if !target(${PROG})
|
||||
.if defined(SRCS)
|
||||
|
||||
DPSRCS+= ${SRCS:M*.h}
|
||||
@ -47,6 +48,7 @@ ${PROG}: ${DPSRCS} ${OBJS}
|
||||
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDDESTDIR} ${LDADD}
|
||||
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if !defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \
|
||||
!defined(MAN4) && !defined(MAN5) && !defined(MAN6) && \
|
||||
|
Loading…
Reference in New Issue
Block a user