mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Break compilation when running as root to discourage stupid user mistakes
git-svn-id: http://svn.inspircd.org/repository/branches/1_2_stable@12270 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
f4d23fddb1
commit
a60c31a448
@ -52,7 +52,10 @@ all: ircd mods finishmessage
|
||||
debug:
|
||||
@${MAKE} D=1 all
|
||||
|
||||
debug-header:
|
||||
check-root:
|
||||
@if [ `id -u` = 0 ] && [ ! -e .force-root-ok ]; then echo "Don't compile or install as root!"; exit 1; fi
|
||||
|
||||
debug-header: check-root
|
||||
@echo "*************************************"
|
||||
@echo "* BUILDING WITH DEBUG SYMBOLS *"
|
||||
@echo "* *"
|
||||
@ -66,7 +69,7 @@ debug-header:
|
||||
@echo "* *"
|
||||
@echo "*************************************"
|
||||
|
||||
std-header:
|
||||
std-header: check-root
|
||||
@echo "*************************************"
|
||||
@echo "* BUILDING INSPIRCD *"
|
||||
@echo "* *"
|
||||
|
Loading…
x
Reference in New Issue
Block a user