source: freewrt/GNUmakefile@ 08c8e8e

freewrt_1_0 freewrt_2_0
Last change on this file since 08c8e8e was ae1e313, checked in by Thorsten Glaser <tg@…>, 16 years ago

ensure people don't try to build this as superuser

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@3880 afb5a338-a214-0410-bd46-81f09a774fd1

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