add proper cli install target

Fixes the cli only being installed during build configuration
This commit is contained in:
Jussi Kuokkanen 2024-01-12 13:05:43 +02:00
parent 36ef611ef2
commit 65c3813063
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
#!/usr/bin/env sh
cd "$(dirname "$0")"
cabal install . --overwrite-policy=always "$@"

View File

@ -1,3 +1,4 @@
install_dir = join_paths(get_option('prefix'), get_option('bindir'))
run_command('cabal', 'install', '--installdir=@0@'.format(install_dir))
meson.add_install_script(
'call-cabal.sh', '--installdir=@0@'.format(install_dir))