Skip to content

Commit

Permalink
Add INSTALL_PREFIX helper variable to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Dec 2, 2024
1 parent 685a9bc commit 06cd3da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# QuickJS Javascript Engine
#
#
# Copyright (c) 2017-2021 Fabrice Bellard
# Copyright (c) 2017-2021 Charlie Gordon
# Copyright (c) 2023 Ben Noordhuis
Expand All @@ -26,6 +26,7 @@

BUILD_DIR=build
BUILD_TYPE?=Release
INSTALL_PREFIX?=/usr/local

QJS=$(BUILD_DIR)/qjs
QJSC=$(BUILD_DIR)/qjsc
Expand All @@ -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)
Expand Down

0 comments on commit 06cd3da

Please sign in to comment.