Skip to content

Commit

Permalink
Break compilation when running as root to discourage stupid user mist…
Browse files Browse the repository at this point in the history
…akes

git-svn-id: http://svn.inspircd.org/repository/branches/1_2_stable@12270 e03df62e-2008-0410-955e-edbf42e46eb7
  • Loading branch information
danieldg committed Jan 16, 2010
1 parent f4d23fd commit a60c31a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .Makefile.inc
Expand Up @@ -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 "* *"
Expand All @@ -66,7 +69,7 @@ debug-header:
@echo "* *"
@echo "*************************************"

std-header:
std-header: check-root
@echo "*************************************"
@echo "* BUILDING INSPIRCD *"
@echo "* *"
Expand Down

0 comments on commit a60c31a

Please sign in to comment.