Install to default path
This commit is contained in:
parent
375acb534c
commit
66c9af58fc
13
Makefile
13
Makefile
|
@ -16,6 +16,12 @@ include CommonDefs.mk
|
||||||
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
|
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||||||
MKFILE_DIR := $(patsubst %/,%,$(dir $(MKFILE_PATH)))
|
MKFILE_DIR := $(patsubst %/,%,$(dir $(MKFILE_PATH)))
|
||||||
|
|
||||||
|
# CMAKE_INSTALL_PREFIX:
|
||||||
|
# https://cmake.org/cmake/help/latest/variable/CMAKE_INSTALL_PREFIX.html
|
||||||
|
#
|
||||||
|
# UNIX: /usr/local
|
||||||
|
# Windows: c:/Program Files/${PROJECT_NAME}
|
||||||
|
|
||||||
.DEFAULT_GOAL := help
|
.DEFAULT_GOAL := help
|
||||||
|
|
||||||
help:
|
help:
|
||||||
|
@ -83,7 +89,8 @@ init: submodules
|
||||||
|
|
||||||
build: third_party
|
build: third_party
|
||||||
@$(call echo,Make $@)
|
@$(call echo,Make $@)
|
||||||
@$(call cmake_build,./_build,..,-DCMAKE_INSTALL_PREFIX=$(MKFILE_DIR)/_install)
|
@$(call cmake_build,./_build,..)
|
||||||
|
@# @$(call cmake_build,./_build,..,-DCMAKE_INSTALL_PREFIX=$(MKFILE_DIR)/_install)
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
|
|
||||||
|
@ -115,10 +122,10 @@ ifeq ($(HOST_OS),Win)
|
||||||
ifneq ($(HOST_NAME),MinGW)
|
ifneq ($(HOST_NAME),MinGW)
|
||||||
@cd ./_build; msbuild.exe INSTALL.vcxproj /property:Configuration=Release
|
@cd ./_build; msbuild.exe INSTALL.vcxproj /property:Configuration=Release
|
||||||
else
|
else
|
||||||
@cd ./_build; make install
|
@cd ./_build; sudo make install
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
@cd ./_build; make install
|
@cd ./_build; sudo make install
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
|
|
Loading…
Reference in New Issue
Block a user