[gnome-power-manager: 1/2] build: install binary into correct location



commit 2fd0719cef3d4445443cf1940ea08c69762153c2
Author: Rasmus Thomsen <cogitri exherbo org>
Date:   Sun Apr 22 10:03:17 2018 +0200

    build: install binary into correct location
    
    Before this commit build just expected that we're going
    to install into ${PREFIX}/bin, which is wrong in some cases
    (e.g. if you want to cross-compile and have to install shared
    data into /usr/share and all arch specific stuff into /usr/${CTARGET})
    
    By using get_option('bindir') we allow passing `--bindir` to meson
    to customize it. If no `--bindir` param is passed to meson `bin`
    is the default, so it doesn't change the install location if
    nothing is passed to meson.

 src/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/meson.build b/src/meson.build
index 4a7e96d7..db4f17b3 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -28,7 +28,7 @@ executable(
   ],
   c_args : cargs,
   install : true,
-  install_dir : 'bin'
+  install_dir : get_option('bindir')
 )
 
 if get_option('enable-tests')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]