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

Update Makefile #95

Merged
merged 1 commit into from
Jul 12, 2018
Merged
Changes from all commits
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
10 changes: 4 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ CLANG := $(shell which clang)
CCACHE := $(shell which ccache)
OS= $(shell uname)

ifndef PREFIX
PREFIX=/bin/
endif
+PREFIX ?= /usr/local

ifndef VIS_COMPILER_ARCH
VIS_COMPILER_ARCH=native
Expand Down Expand Up @@ -78,8 +76,6 @@ PERF_TEST_LD_FLAGS = -fno-omit-frame-pointer

ifeq ($(OS),Darwin)
LD_FLAGS += -D_XOPEN_SOURCE_EXTENDED
#El Capitan has SIP, so things need to live in usr/local/bin now.
PREFIX=/usr/local/bin/
endif

# DEBUG Settings
Expand Down Expand Up @@ -215,7 +211,9 @@ uninstall:
@rm -f $(PREFIX)/safe_fifo

install:
cp "$(BUILD_DIR)/$(TARGET)" "$(PREFIX)"
mkdir -p $(DESTDIR)$(PREFIX)/bin
#FIXME: "vis" binary is created by default
cp $(BUILD_DIR)/vis $(DESTDIR)$(PREFIX)/bin/$(TARGET)
# cp bin/safe_fifo "$(PREFIX)"

###############################################################################
Expand Down