summaryrefslogtreecommitdiff
path: root/make/template/main.mk
diff options
context:
space:
mode:
Diffstat (limited to 'make/template/main.mk')
-rw-r--r--make/template/main.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index d2a040f97..3dce24de4 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -100,6 +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
cd $(BUILDPATH); $(MAKEENV) $(MAKE) -f real.mk $(TARGET)
debug: