diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2015-12-11 22:40:55 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2015-12-11 22:40:55 +0100 |
commit | 74663fdbbd1dc92dd91f6f88dbc4f972df12c404 (patch) | |
tree | 284817a1c9ff266a6474ae9d441eb53e7c514e6c /BSDmakefile | |
parent | 5847a9730ff284181c4087ed9ce85cf9955c47c3 (diff) |
Revert "rework prereq check"
This reverts commit fba2ff31928b18364c1934654169806f5c800e23.
Diffstat (limited to 'BSDmakefile')
-rw-r--r-- | BSDmakefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/BSDmakefile b/BSDmakefile new file mode 100644 index 000000000..ddf869106 --- /dev/null +++ b/BSDmakefile @@ -0,0 +1,27 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +ADK_TOPDIR= ${.CURDIR} +PWD= ${.CURDIR} + +.include "${.CURDIR}/Makefile.inc" + +.if defined(package) && !empty(package) +subdir:= package/${package} +. if !make(clean) +_subdir_dep:= ${ADK_TOPDIR}/.config +. endif +.endif + +.if defined(subdir) && !empty(subdir) +_subdir:= ${.TARGETS} +${.TARGETS}: _subdir + +_subdir: ${_subdir_dep} + cd ${.CURDIR}/${subdir} && ADK_TOPDIR=${.CURDIR} DEVELOPER=1 \ + ${GMAKE} ADK_VERBOSE=1 ${.MFLAGS} ${_subdir} + +. include "${.CURDIR}/prereq.mk" +.else +. include "${.CURDIR}/Makefile" +.endif |