Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "/usr/local" as default prefix for "make install" #448

Merged
merged 5 commits into from
Apr 10, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,11 @@ define themisecho
@tput sgr0
endef

ifeq ($(ENGINE),)
ENGINE=libressl
endif

#default engine
ifeq ($(PREFIX),)
PREFIX = /usr
# default installation prefix
PREFIX ?= /usr/local

# MacOS
ifdef IS_MACOS
PREFIX = /usr/local
endif

endif
# default cryptographic engine
ENGINE ?= libressl

#engine selection block
ifneq ($(ENGINE),)
Expand Down Expand Up @@ -675,6 +666,8 @@ symlink_realname_to_soname:
strip:
@find . -name \*.$(SHARED_EXT)\.* -exec strip -o {} {} \;

deb: PREFIX = /usr

deb: soter_static themis_static soter_shared themis_shared soter_pkgconfig themis_pkgconfig collect_headers install_shell_scripts strip symlink_realname_to_soname
@mkdir -p $(BIN_PATH)/deb

Expand Down Expand Up @@ -717,6 +710,7 @@ deb: soter_static themis_static soter_shared themis_shared soter_pkgconfig themi
# it's just for printing .deb files
@find $(BIN_PATH) -name \*.deb

rpm: PREFIX = /usr

rpm: themis_static themis_shared themis_pkgconfig soter_static soter_shared soter_pkgconfig collect_headers install_shell_scripts strip symlink_realname_to_soname
@mkdir -p $(BIN_PATH)/rpm
Expand Down