Skip to content

Commit

Permalink
Merge pull request #95 from blshkv/patch-1
Browse files Browse the repository at this point in the history
Update Makefile
  • Loading branch information
dpayne authored Jul 12, 2018
2 parents 4be5c3a + 8bc0a18 commit 7e7ee0a
Showing 1 changed file with 4 additions and 6 deletions.
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

0 comments on commit 7e7ee0a

Please sign in to comment.