Prevent accidentally running 'make install' as sudo.
This commit is contained in:
parent
75c155b834
commit
f171d98804
1 changed files with 4 additions and 0 deletions
|
|
@ -52,7 +52,11 @@ check-cargotest:
|
|||
dist:
|
||||
$(Q)$(BOOTSTRAP) --step dist
|
||||
install:
|
||||
ifeq (root user, $(USER) $(patsubst %,user,$(SUDO_USER)))
|
||||
$(Q)echo "'sudo make install' is not supported currently."
|
||||
else
|
||||
$(Q)$(BOOTSTRAP) --step install
|
||||
endif
|
||||
tidy:
|
||||
$(Q)$(BOOTSTRAP) --step check-tidy --stage 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue