add cvs package, add half-ready bzr package
[openadk.git] / makefile
blob760d123d69404acf80f49fbd03f3d9cc71d90c15
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}/.ADK_HAVE_DOT_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 . include "${.CURDIR}/mk/split-cfg.mk"
33 .else
34 . include "${.CURDIR}/Makefile"
35 .endif