root/trunk/freewrt/BSDmakefile

Revision 3732, 0.9 kB (checked in by tg, 6 months ago)

grml… some shells and makes differ

Line 
1 # $FreeWRT$
2 #-
3 # This file is part of the FreeWRT project. FreeWRT is copyrighted
4 # material, please see the LICENCE file in the top-level directory
5 # or at http://www.freewrt.org/licence for details.
6
7 TOPDIR=         ${.CURDIR}
8 PWD=            ${.CURDIR}
9
10 .if defined(package) && !empty(package)
11 subdir:=        package/${package}
12 .  if !make(clean)
13 _subdir_dep:=   ${TOPDIR}/.cfg/FWRT_HAVE_DOT_CONFIG
14 .  endif
15 .endif
16
17 .if defined(subdir) && !empty(subdir)
18 _subdir:=       ${.TARGETS}
19 ${.TARGETS}: _subdir
20
21 _subdir: ${_subdir_dep}
22         @if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \
23                 echo >&2 Error: you must build with “umask 022”, sorry.; \
24                 exit 1; \
25         fi
26         cd ${.CURDIR}/${subdir} && TOPDIR=${.CURDIR} DEVELOPER=1 \
27             ${.CURDIR}/lbin/gmake V=99 ${.MFLAGS} ${_subdir}
28
29 .  include "${.CURDIR}/lbin/prereq.mk"
30 .  include "${.CURDIR}/mk/split-cfg.mk"
31 .else
32 .  include "${.CURDIR}/Makefile"
33 .endif
Note: See TracBrowser for help on using the browser.