Skip to content

Commit

Permalink
define LIB_DIR in the makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurakgun committed Feb 22, 2024
1 parent 6c66a4e commit f7c1e45
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ SHELL := /bin/bash
# override by calling the makefile like so: "GHC_VERSION=9.2 make"
export GHC_VERSION?=9.4
export BIN_DIR?=${HOME}/.local/bin
export LIB_DIR?=${BIN_DIR}/lib
export PATH := $(BIN_DIR):$(PATH)
export CI?=false
export BUILD_TESTS?=false
Expand All @@ -20,10 +21,15 @@ install:
@echo ""
@echo "Installing executables to ${BIN_DIR}"
@echo "Add this directory to your PATH."
@echo "Set the environment variable BIN_DIR to change this location"
@echo "For example: \"BIN_DIR=your/preferred/path make install\""
@echo ""
@echo "Installing shared libraries to ${LIB_DIR}"
@echo "Add this directory to your LD_LIBRARY_PATH."
@echo ""
@echo "You can set the environment variables BIN_DIR and LIB_DIR to change these locations"
@echo "For example: \"BIN_DIR=your/preferred/path LIB_DIR=/usr/local/lib make install\""
@echo ""
@mkdir -p ${BIN_DIR}
@mkdir -p ${LIB_DIR}
@echo Using Stack file: etc/hs-deps/stack-${GHC_VERSION}.yaml
@if ${BUILD_TESTS} ; then echo "BUILD_TESTS=true"; fi
@if ${CI} ; then echo "CI=true"; fi
Expand Down

0 comments on commit f7c1e45

Please sign in to comment.