Add depend to all target so that it's explicit. It's only done once,

even if make all is run multiple times, since the depend rule looks for
an existing .depend file.
This commit is contained in:
Jordan K. Hubbard
1996-08-23 16:49:06 +00:00
parent b2420a13ab
commit 8d26610d5f
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
# from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91
# $Id: bsd.lib.mk,v 1.38 1996/08/03 06:43:05 jkh Exp $
# $Id: bsd.lib.mk,v 1.39 1996/08/11 12:24:44 peter Exp $
#
.if exists(${.CURDIR}/../Makefile.inc)
@@ -121,7 +121,7 @@ _LIBS+=lib${LIB}_pic.a
PICFLAG=-fpic
.endif
all: ${_LIBS} all-man _SUBDIR # llib-l${LIB}.ln
all: depend ${_LIBS} all-man _SUBDIR # llib-l${LIB}.ln
OBJS+= ${SRCS:N*.h:R:S/$/.o/g}
+2 -2
View File
@@ -1,5 +1,5 @@
# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
# $Id: bsd.prog.mk,v 1.34 1996/06/24 04:24:13 jkh Exp $
# $Id: bsd.prog.mk,v 1.35 1996/06/29 03:12:49 phk Exp $
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
@@ -135,7 +135,7 @@ MAN1= ${PROG}.1
# here (or does maninstall always work when nothing is made?),
.MAIN: all
all: ${PROG} all-man _SUBDIR
all: depend ${PROG} all-man _SUBDIR
.if !target(clean)
clean: _SUBDIR
+2 -2
View File
@@ -1,7 +1,7 @@
# bsd.sgml.mk - 8 Sep 1995 John Fieber
# This file is in the public domain.
#
# $Id: bsd.sgml.mk,v 1.5 1996/05/27 23:12:15 wosch Exp $
# $Id: bsd.sgml.mk,v 1.6 1996/06/24 04:24:14 jkh Exp $
#
# The include file <bsd.sgml.mk> handles installing sgml documents.
# <bsd.prog.mk> includes the file named "../Makefile.inc" if it exists,
@@ -68,7 +68,7 @@ LPR?= lpr
DOCS= ${FORMATS:S/^/${DOC}./g}
.MAIN: all
all: ${DOCS}
all: depend ${DOCS}
# If FORMATS is empty, do nothing
.if empty(FORMATS)