diff options
| author | Bryan Drewery <bdrewery@FreeBSD.org> | 2017-11-01 21:22:16 +0000 |
|---|---|---|
| committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2017-11-01 21:22:16 +0000 |
| commit | f8b15066f2a6a3ab22570343712969dc68873c6a (patch) | |
| tree | 28a4f584a5b94de9a1871bf4813463a2095b9b74 | |
| parent | 3d165b2f1edccd418471bb11c4dfb56f0b336aad (diff) | |
Notes
| -rw-r--r-- | share/mk/bsd.subdir.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk index 252acea115a4..1730895705f8 100644 --- a/share/mk/bsd.subdir.mk +++ b/share/mk/bsd.subdir.mk @@ -38,12 +38,16 @@ .if !target(__<bsd.subdir.mk>__) __<bsd.subdir.mk>__: +.if ${MK_AUTO_OBJ} == "no" +_obj= obj +.endif + SUBDIR_TARGETS+= \ all all-man analyze buildconfig buildfiles buildincludes \ checkdpadd clean cleandepend cleandir cleanilinks \ cleanobj depend distribute files includes installconfig \ installfiles installincludes print-dir realinstall lint \ - maninstall manlint obj objlink tags \ + maninstall manlint ${_obj} objlink tags \ # Described above. STANDALONE_SUBDIR_TARGETS+= \ @@ -69,6 +73,10 @@ print-dir: .PHONY .endif .endif +.if ${MK_AUTO_OBJ} == "yes" && !target(obj) +obj: .PHONY +.endif + .if !defined(NEED_SUBDIR) # .MAKE.DEPENDFILE==/dev/null is set by bsd.dep.mk to avoid reading # Makefile.depend |
