add tools/syslinux
[openadk.git] / BSDmakefile
blob9afeaa3af7e8a6b078ce1001c268840dc064ef8c
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 ADKVERSION= 0.1.0
5 TOPDIR= ${.CURDIR}
6 PWD= ${.CURDIR}
8 .include "${.CURDIR}/Makefile.inc"
10 GMAKE_ENV+= ADKVERSION=${ADKVERSION:Q}
12 .if defined(package) && !empty(package)
13 subdir:= package/${package}
14 . if !make(clean)
15 _subdir_dep:= ${TOPDIR}/.config
16 . endif
17 .endif
19 .if defined(subdir) && !empty(subdir)
20 _subdir:= ${.TARGETS}
21 ${.TARGETS}: _subdir
23 _subdir: ${_subdir_dep}
24 @if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \
25 echo >&2 Error: you must build with “umask 022, sorry.; \
26 exit 1; \
28 cd ${.CURDIR}/${subdir} && TOPDIR=${.CURDIR} DEVELOPER=1 \
29 ${GMAKE} VERBOSE=1 ${.MFLAGS} ${_subdir}
31 . include "${.CURDIR}/prereq.mk"
32 .else
33 . include "${.CURDIR}/Makefile"
34 .endif