Skip to content

Commit 06cd3da

Browse files
committed
Add INSTALL_PREFIX helper variable to Makefile
1 parent 685a9bc commit 06cd3da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# QuickJS Javascript Engine
3-
#
3+
#
44
# Copyright (c) 2017-2021 Fabrice Bellard
55
# Copyright (c) 2017-2021 Charlie Gordon
66
# Copyright (c) 2023 Ben Noordhuis
@@ -26,6 +26,7 @@
2626

2727
BUILD_DIR=build
2828
BUILD_TYPE?=Release
29+
INSTALL_PREFIX?=/usr/local
2930

3031
QJS=$(BUILD_DIR)/qjs
3132
QJSC=$(BUILD_DIR)/qjsc
@@ -49,7 +50,7 @@ fuzz:
4950
./fuzz
5051

5152
$(BUILD_DIR):
52-
cmake -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
53+
cmake -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DCMAKE_INSTALL_PREFIX=$(INSTALL_PREFIX)
5354

5455
$(QJS): $(BUILD_DIR)
5556
cmake --build $(BUILD_DIR) -j $(JOBS)

0 commit comments

Comments
 (0)