build: add 'lispdir' option
Add lispdir option for installing mu4e in a custom directory, which what some pre-meson users tended to do with --lispdir. Passing '-Dlispdir=/tmp/foo/bar' causes the mu4e files to be installed in /tmp/foo/bar/mu4e. Should help for issue #2287.
This commit is contained in:
16
meson.build
16
meson.build
@ -31,10 +31,18 @@ project('mu', ['c', 'cpp'],
|
||||
|
||||
# installation paths
|
||||
prefixdir = get_option('prefix')
|
||||
bindir = join_paths(prefixdir, get_option('bindir'))
|
||||
datadir = join_paths(prefixdir, get_option('datadir'))
|
||||
mandir = join_paths(prefixdir, get_option('mandir'))
|
||||
infodir = join_paths(prefixdir, get_option('infodir'))
|
||||
bindir = prefixdir / get_option('bindir')
|
||||
datadir = prefixdir / get_option('datadir')
|
||||
mandir = prefixdir / get_option('mandir')
|
||||
infodir = prefixdir / get_option('infodir')
|
||||
|
||||
# allow for configuring lispdir, as with autotools.
|
||||
# default to <p
|
||||
if get_option('lispdir') == ''
|
||||
mu4e_lispdir= datadir / join_paths('emacs', 'site-lisp', 'mu4e')
|
||||
else
|
||||
mu4e_lispdir= get_option('lispdir') / 'mu4e'
|
||||
endif
|
||||
|
||||
################################################################################
|
||||
# compilers / flags
|
||||
|
||||
Reference in New Issue
Block a user