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:= $(shell pwd)
|
|---|
| 8 | PWD:= ${TOPDIR}
|
|---|
| 9 |
|
|---|
| 10 | ifeq ($(shell id -u),0)
|
|---|
| 11 | $(error Do not build as root! It causes problems)
|
|---|
| 12 | endif
|
|---|
| 13 |
|
|---|
| 14 | ifneq (${package},)
|
|---|
| 15 | subdir:= package/${package}
|
|---|
| 16 | endif
|
|---|
| 17 |
|
|---|
| 18 | ifneq (${subdir},)
|
|---|
| 19 | ${MAKECMDGOALS}: _subdir
|
|---|
| 20 |
|
|---|
| 21 | _subdir:
|
|---|
| 22 | cd ${subdir} && TOPDIR=${TOPDIR} \
|
|---|
| 23 | ${TOPDIR}/lbin/gmake ${MAKEFLAGS} ${MAKECMDGOALS}
|
|---|
| 24 | else
|
|---|
| 25 | include Makefile
|
|---|
| 26 | endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.