summaryrefslogtreecommitdiff
path: root/make/template/main.mk
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-16 20:45:55 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-16 20:45:55 +0000
commit127ecef929a392b48bc0c4c4050192a289fc3090 (patch)
treee81ced79b3c174da9fac4af3d8c4e7e6ac051d44 /make/template/main.mk
parent4b5dc58bc75121f5d0f69792a3260b84c91479cf (diff)
Allow .force-root-ok to bypass the root check for easier distro packaging
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12271 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make/template/main.mk')
-rw-r--r--make/template/main.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index 3dce24de4..88514029b 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -100,7 +100,7 @@ all: $(FOOTER)
target: $(HEADER)
$(MAKEENV) perl make/calcdep.pl
- @if [ `id -u` = 0 ]; then echo "Don't compile or install as root!"; exit 1; fi
+ @if [ `id -u` = 0 ] && [ ! -e .force-root-ok ]; then echo "Don't compile or install as root!"; exit 1; fi
cd $(BUILDPATH); $(MAKEENV) $(MAKE) -f real.mk $(TARGET)
debug: