Prevent accidentally running 'make install' as sudo.

This commit is contained in:
Ahmed Charles 2016-10-06 19:36:36 -07:00
parent 75c155b834
commit f171d98804

View file

@ -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