mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
Add INSTALL_PREFIX helper variable to Makefile
This commit is contained in:
parent
685a9bc171
commit
06cd3da2fd
1 changed files with 3 additions and 2 deletions
3
Makefile
3
Makefile
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue