Prevent building as root.

This commit is contained in:
Michael Spang 2007-06-30 18:26:17 -04:00
parent 0f65af078b
commit 955e455316
1 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,10 @@ INPUTS = index.xml footer.xml
SUBDIRS = about events docs office news users clubs media
# the following two rules are there so cow gets built first.
cow-first: events.ics recurse-cow books.xml members.xml menu.xml all
cow-first: noroot events.ics recurse-cow books.xml members.xml menu.xml all
noroot:
if test $$UID = 0; then echo "don't build as root!"; exit 1; fi
recurse-cow:
cd cow && $(MAKE) && cd ..