diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-04-14 09:01:48 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-04-14 09:01:48 +0300 |
commit | 466257699559390237615f651ce0f30f07543434 (patch) | |
tree | a751dc445d04533bd16db690413f0d71a92f5049 | |
parent | 44c1cfc7d8ab7afb1e01ac57d3feeb410ba43748 (diff) |
149
Change-Id: I63f055756ff5f571d5ebe89aa4aee52d8ae2c510
-rw-r--r-- | Makefile.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index 251f70724350..d0c5757790db 100644 --- a/Makefile.in +++ b/Makefile.in @@ -9,7 +9,7 @@ gb_Top_MODULE_CHECK_TARGETS := slowcheck unitcheck subsequentcheck perfcheck -.PHONY : all bootstrap gbuild build build-non-l10n-only build-l10n-only check clean clean-build clean-host test-install distclean distro-pack-install docs download etags fetch findunusedcode get-submodules id install install-strip tags debugrun help showmodules translations packageinfo internal.clean $(gb_Top_MODULE_CHECK_TARGETS) +.PHONY : all check-if-root bootstrap gbuild build build-non-l10n-only build-l10n-only check clean clean-build clean-host test-install distclean distro-pack-install docs download etags fetch findunusedcode get-submodules id install install-strip tags debugrun help showmodules translations packageinfo internal.clean $(gb_Top_MODULE_CHECK_TARGETS) MAKECMDGOALS?=all build_goal:=$(if $(filter build check,$(MAKECMDGOALS)),all)\ @@ -50,7 +50,15 @@ $(BUILDDIR)/config_host.mk : $(wildcard \ else # MAKE_RESTARTS -all: build +all: check-if-root build + +check-if-root: + @if test `id -u` = 0; then \ + echo; \ + echo 'No. You make ME a sandwich.'; \ + echo; \ + exit 1; \ + fi gb_Side ?= host |