freewrt_1_0
freewrt_2_0
| 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 | USER_ID!= id -u
|
|---|
| 10 |
|
|---|
| 11 | .if defined(package) && !empty(package)
|
|---|
| 12 | subdir:= package/${package}
|
|---|
| 13 | .endif
|
|---|
| 14 |
|
|---|
| 15 | .if ${USER_ID} == 0
|
|---|
| 16 | ${.TARGETS}: _nixda
|
|---|
| 17 |
|
|---|
| 18 | _nixda:
|
|---|
| 19 | @echo Do not build as root! It causes problems.
|
|---|
| 20 | @exit 1
|
|---|
| 21 | .elif defined(subdir) && !empty(subdir)
|
|---|
| 22 | _subdir:= ${.TARGETS}
|
|---|
| 23 | ${.TARGETS}: _subdir
|
|---|
| 24 |
|
|---|
| 25 | _subdir:
|
|---|
| 26 | cd ${.CURDIR}/${subdir} && TOPDIR=${.CURDIR} \
|
|---|
| 27 | ${.CURDIR}/lbin/gmake ${.MFLAGS} ${_subdir}
|
|---|
| 28 | .else
|
|---|
| 29 | . include "${.CURDIR}/Makefile"
|
|---|
| 30 | .endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.