Install udev rules
Change-Id: Id8bb6b0fa005e1e9ba09411f59aa1ac8b2f6f1c6
Signed-off-by: Jakob Haufe <sur5r@sur5r.net>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/264
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: Nico Huber <nico.h@gmx.de>
diff --git a/util/meson.build b/util/meson.build
new file mode 100644
index 0000000..bc89973
--- /dev/null
+++ b/util/meson.build
@@ -0,0 +1,9 @@
+if get_option('install_udev_rules')
+ udev = dependency('udev')
+
+ install_data([
+ 'z60_flashprog.rules'
+ ],
+ install_dir : join_paths(udev.get_variable(pkgconfig : 'udevdir'), 'rules.d')
+ )
+endif