From 06cd3da2fd53cb8c4f7ba5ee74d67495b7d66aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Mon, 2 Dec 2024 09:10:26 +0100 Subject: [PATCH] Add INSTALL_PREFIX helper variable to Makefile --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index da7a1fb..2ec7ee4 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # # QuickJS Javascript Engine -# +# # Copyright (c) 2017-2021 Fabrice Bellard # Copyright (c) 2017-2021 Charlie Gordon # Copyright (c) 2023 Ben Noordhuis @@ -26,6 +26,7 @@ BUILD_DIR=build BUILD_TYPE?=Release +INSTALL_PREFIX?=/usr/local QJS=$(BUILD_DIR)/qjs QJSC=$(BUILD_DIR)/qjsc @@ -49,7 +50,7 @@ fuzz: ./fuzz $(BUILD_DIR): - cmake -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) + cmake -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DCMAKE_INSTALL_PREFIX=$(INSTALL_PREFIX) $(QJS): $(BUILD_DIR) cmake --build $(BUILD_DIR) -j $(JOBS)