mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-11-10 04:37:37 +01:00
install (and uninstall) udev rules file
This commit is contained in:
parent
5f88049c0c
commit
0fb8543dde
@ -87,6 +87,20 @@ add_custom_target(uninstall
|
||||
${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
|
||||
)
|
||||
|
||||
########################################################################
|
||||
# Install udev rules
|
||||
########################################################################
|
||||
option(INSTALL_UDEV_RULES "Install udev rules for RTL-SDR" ON)
|
||||
if (INSTALL_UDEV_RULES)
|
||||
install (
|
||||
FILES rtl-sdr.rules
|
||||
DESTINATION "/etc/udev/rules.d"
|
||||
COMPONENT "udev"
|
||||
)
|
||||
else (INSTALL_UDEV_RULES)
|
||||
message (STATUS "Udev rules not being installed, install them with -DINSTALL_UDEV_RULES=ON")
|
||||
endif (INSTALL_UDEV_RULES)
|
||||
|
||||
########################################################################
|
||||
# Add subdirectories
|
||||
########################################################################
|
||||
|
@ -7,13 +7,16 @@ SUBDIRS = include src
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = librtlsdr.pc
|
||||
|
||||
udevrulesdir=/etc/udev/rules.d
|
||||
udevrules_DATA = rtl-sdr.rules
|
||||
|
||||
BUILT_SOURCES = $(top_srcdir)/.version
|
||||
$(top_srcdir)/.version:
|
||||
echo $(VERSION) > $@-t && mv $@-t $@
|
||||
dist-hook:
|
||||
echo $(VERSION) > $(distdir)/.tarball-version
|
||||
|
||||
EXTRA_DIST = git-version-gen
|
||||
EXTRA_DIST = git-version-gen $(udevrules_DATA)
|
||||
|
||||
if HAVE_DOXYGEN
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user