Deleted Added
full compact
meta.autodep.mk (296637) meta.autodep.mk (298225)
1# $FreeBSD: head/share/mk/meta.autodep.mk 296637 2016-03-11 01:35:39Z sjg $
1# $FreeBSD: head/share/mk/meta.autodep.mk 298225 2016-04-18 20:56:21Z sjg $
2# $Id: meta.autodep.mk,v 1.40 2016/02/22 22:44:58 sjg Exp $
3
4#
5# @(#) Copyright (c) 2010, Simon J. Gerraty
6#
7# This file is provided in the hope that it will
8# be of use. There is absolutely NO WARRANTY.
9# Permission to copy, redistribute or otherwise

--- 4 unchanged lines hidden (view full) ---

14# Please send copies of changes and bug-fixes to:
15# sjg@crufty.net
16#
17
18_this ?= ${.PARSEFILE}
19.if !target(__${_this}__)
20__${_this}__: .NOTMAIN
21
2# $Id: meta.autodep.mk,v 1.40 2016/02/22 22:44:58 sjg Exp $
3
4#
5# @(#) Copyright (c) 2010, Simon J. Gerraty
6#
7# This file is provided in the hope that it will
8# be of use. There is absolutely NO WARRANTY.
9# Permission to copy, redistribute or otherwise

--- 4 unchanged lines hidden (view full) ---

14# Please send copies of changes and bug-fixes to:
15# sjg@crufty.net
16#
17
18_this ?= ${.PARSEFILE}
19.if !target(__${_this}__)
20__${_this}__: .NOTMAIN
21
22.-include "local.autodep.mk"
22.-include <local.autodep.mk>
23
24.if defined(SRCS)
25# it would be nice to be able to query .SUFFIXES
26OBJ_EXTENSIONS+= .o .po .lo .So
27
28# explicit dependencies help short-circuit .SUFFIX searches
29SRCS_DEP_FILTER+= N*.[hly]
30.for s in ${SRCS:${SRCS_DEP_FILTER:O:u:ts:}}

--- 20 unchanged lines hidden (view full) ---

51.endif
52
53_CURDIR ?= ${.CURDIR}
54_OBJDIR ?= ${.OBJDIR}
55_OBJTOP ?= ${OBJTOP}
56_OBJROOT ?= ${OBJROOT:U${_OBJTOP}}
57_DEPENDFILE := ${_CURDIR}/${.MAKE.DEPENDFILE:T}
58
23
24.if defined(SRCS)
25# it would be nice to be able to query .SUFFIXES
26OBJ_EXTENSIONS+= .o .po .lo .So
27
28# explicit dependencies help short-circuit .SUFFIX searches
29SRCS_DEP_FILTER+= N*.[hly]
30.for s in ${SRCS:${SRCS_DEP_FILTER:O:u:ts:}}

--- 20 unchanged lines hidden (view full) ---

51.endif
52
53_CURDIR ?= ${.CURDIR}
54_OBJDIR ?= ${.OBJDIR}
55_OBJTOP ?= ${OBJTOP}
56_OBJROOT ?= ${OBJROOT:U${_OBJTOP}}
57_DEPENDFILE := ${_CURDIR}/${.MAKE.DEPENDFILE:T}
58
59.if ${.MAKE.LEVEL} > 0 || ${BUILD_AT_LEVEL0:Uyes:tl} == "yes"
60# do not allow auto update if we ever built this dir without filemon
61NO_FILEMON_COOKIE = .nofilemon
62CLEANFILES += ${NO_FILEMON_COOKIE}
63.if ${.MAKE.MODE:Uno:Mnofilemon} != ""
64UPDATE_DEPENDFILE = NO
65all: ${NO_FILEMON_COOKIE}
66${NO_FILEMON_COOKIE}: .NOMETA
67 @echo UPDATE_DEPENDFILE=NO > ${.TARGET}
68.elif exists(${NO_FILEMON_COOKIE})
69UPDATE_DEPENDFILE = NO
70.warning ${RELDIR} built with nofilemon; UPDATE_DEPENDFILE=NO
71.endif
72.endif
73
59.if ${.MAKE.LEVEL} == 0
60.if ${BUILD_AT_LEVEL0:Uyes:tl} == "no"
61UPDATE_DEPENDFILE = NO
62.endif
63.endif
64.if !exists(${_DEPENDFILE})
65_bootstrap_dirdeps = yes
66.endif

--- 231 unchanged lines hidden ---
74.if ${.MAKE.LEVEL} == 0
75.if ${BUILD_AT_LEVEL0:Uyes:tl} == "no"
76UPDATE_DEPENDFILE = NO
77.endif
78.endif
79.if !exists(${_DEPENDFILE})
80_bootstrap_dirdeps = yes
81.endif

--- 231 unchanged lines hidden ---