From f307d9b9c9e05102ebeed2cf84323b93ec644cdc Mon Sep 17 00:00:00 2001 From: therealmarkoprifti Date: Thu, 4 Jan 2024 09:20:09 +0100 Subject: [PATCH] Add sudo --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 7662dac..bcba1ad 100644 --- a/Makefile +++ b/Makefile @@ -53,12 +53,12 @@ build/lib/$(LIB_MAJOR): build/lib/$(LIB_VERSION) .PHONY: install install: all - mkdir -p $(addprefix $(DESTDIR)/, src lib include $(MANDIR)) - cp -R $(filter-out deb, $(wildcard build/*)) $(DESTDIR) - cp -R $(MANS) $(DESTDIR)/$(MANDIR) + sudo mkdir -p $(addprefix $(DESTDIR)/, src lib include $(MANDIR)) + sudo cp -R $(filter-out deb, $(wildcard build/*)) $(DESTDIR) + sudo cp -R $(MANS) $(DESTDIR)/$(MANDIR) ifeq ($(OS),Linux) - ldconfig $(DESTDIR)/lib + sudo ldconfig $(DESTDIR)/lib endif .PHONY: clean