From 1c4a9e2e17d84a929cd52044c33e27db651ce15e Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 12 Jan 2025 07:25:16 -0500 Subject: [PATCH] Don't recommend running `sudo make`. Don't install packages without permission. Don't automatically update packages. --- Makefile | 5 ++--- README.md | 6 ++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 49cfc73..777a8c5 100644 --- a/Makefile +++ b/Makefile @@ -273,8 +273,7 @@ plugin-analyze: static-analysis-cppcheck dep-ubuntu: - apt-get update - apt-get install -y --no-install-recommends \ + sudo apt-get install --no-install-recommends \ ca-certificates \ git \ build-essential \ @@ -314,7 +313,7 @@ dep-ubuntu: dep-arch-linux: - pacman -Suyy --noconfirm && pacman -S --noconfirm --needed \ + sudo pacman -S --needed \ gcc \ git \ cmake \ diff --git a/README.md b/README.md index fe71b06..1150737 100644 --- a/README.md +++ b/README.md @@ -38,11 +38,13 @@ There are two ways to build the toolchains: Install toolchain build dependencies. On Arch Linux, ```bash -sudo make dep-arch-linux +sudo pacman -Syu +make dep-arch-linux ``` or on Ubuntu, ```bash -sudo make dep-ubuntu +sudo apt-get update +make dep-ubuntu ``` Build toolchains for all three platforms.