Skip to content

Commit

Permalink
Fix LOCALBASE/PREFIX misuse
Browse files Browse the repository at this point in the history
PREFIX, not LOCALBASE determines where the files are installed to.

LOCALBASE is used on BSD systems to refer to files installed by
other software.

See https://www.freebsd.org/doc/en/books/porters-handbook/porting-prefix.html
  • Loading branch information
AMDmi3 committed Jul 9, 2018
1 parent 7a91a42 commit 3926bfa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

NAME= open-usp-tukubai

LOCALBASE?= /usr/local
BINDIR?= ${LOCALBASE}/bin
TUKDIR?= ${LOCALBASE}/share/${NAME}
PREFIX?= /usr/local
BINDIR?= ${PREFIX}/bin
TUKDIR?= ${PREFIX}/share/${NAME}
DATDIR?= ${TUKDIR}/devel
MANDIR= ${DATDIR}/man
HTMDIR= ${DATDIR}/html
Expand All @@ -50,9 +50,9 @@ DOCMODE= 444

all:
@echo "Run 'make install' to install"
@echo " LOCALBASE=${LOCALBASE}"
@echo " PREFIX=${PREFIX}"
@echo " BINDIR=${BINDIR}"
@echo " TUKDIR=${LOCALBASE}/share/${NAME}"
@echo " TUKDIR=${TUKDIR}"
@echo " DATDIR=${TUKDIR}/devel"
@echo " MANDIR=${DATDIR}/man"
@echo " HTMDIR=${DATDIR}/html"
Expand Down

0 comments on commit 3926bfa

Please sign in to comment.