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:
danieldg 2010-01-16 20:42:16 +00:00
parent f4d23fddb1
commit a60c31a448

View File

@ -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 "* *"