root/trunk/freewrt/GNUmakefile

Revision 3732, 0.7 kB (checked in by tg, 8 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:=        $(shell pwd)
8 PWD:=           ${TOPDIR}
9
10 ifneq (${package},)
11 subdir:=        package/${package}
12 _subdir_dep:=   ${TOPDIR}/.cfg/FWRT_HAVE_DOT_CONFIG
13 endif
14
15 ifneq (${subdir},)
16 ${MAKECMDGOALS}: _subdir
17
18 _subdir: ${_subdir_dep}
19         @if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \
20                 echo >&2 Error: you must build with “umask 022”, sorry.; \
21                 exit 1; \
22         fi
23         cd ${subdir} && TOPDIR=${TOPDIR} DEVELOPER=1 \
24             ${TOPDIR}/lbin/gmake V=99 ${MAKEFLAGS} ${MAKECMDGOALS}
25
26 include lbin/prereq.mk
27 include mk/split-cfg.mk
28 else
29 include Makefile
30 endif
Note: See TracBrowser for help on using the browser.