From a04d767b576bae203201b7fad287b30741ae5a27 Mon Sep 17 00:00:00 2001 From: Hugo Musso Gualandi Date: Fri, 9 Aug 2024 20:04:33 -0300 Subject: [PATCH] "make install" should never compile things It's a bad idea to run the compiler with sudo, and it's not what people expect. --- .github/workflows/ci.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bbb6607..55f5bf2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: - name: Build run: | - sudo make install + make all && sudo make install - name: Install Busted run: luarocks --local install busted diff --git a/Makefile b/Makefile index 01b25e1..0f58f03 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ tests: library \ all: library examples tests -install: pt-run ptracer.h +install: $(INSTALL_EXEC) pt-run $(BINDIR) $(INSTALL_DATA) ptracer.h $(INCDIR)