mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
Add option to install udev rules file on generic linux.
This commit is contained in:
parent
1461447cfa
commit
4c3d71d0a7
@ -81,10 +81,13 @@ endif # Debian based distro?
|
|||||||
# Install OpenPilot
|
# Install OpenPilot
|
||||||
#
|
#
|
||||||
##############################
|
##############################
|
||||||
prefix := /usr/local
|
enable-udev-rules ?= no
|
||||||
bindir := $(prefix)/bin
|
|
||||||
libdir := $(prefix)/lib
|
prefix := /usr/local
|
||||||
datadir := $(prefix)/share
|
bindir := $(prefix)/bin
|
||||||
|
libdir := $(prefix)/lib
|
||||||
|
datadir := $(prefix)/share
|
||||||
|
sysconfdir := $(prefix)/etc
|
||||||
|
|
||||||
INSTALL = cp -a --no-preserve=ownership
|
INSTALL = cp -a --no-preserve=ownership
|
||||||
LN = ln
|
LN = ln
|
||||||
@ -106,4 +109,7 @@ install:
|
|||||||
|
|
||||||
$(V1) $(INSTALL) -T $(ROOT_DIR)/package/linux/openpilot.png $(DESTDIR)$(datadir)/pixmaps/$(ORG_SMALL_NAME).png
|
$(V1) $(INSTALL) -T $(ROOT_DIR)/package/linux/openpilot.png $(DESTDIR)$(datadir)/pixmaps/$(ORG_SMALL_NAME).png
|
||||||
|
|
||||||
|
ifneq ($(enable-udev-rules), no)
|
||||||
|
$(V1) $(MKDIR) -p $(DESTDIR)$(sysconfdir)/udev/rules.d
|
||||||
|
$(V1) $(INSTALL) -T $(ROOT_DIR)/package/linux/45-uav.rules $(DESTDIR)$(sysconfdir)/udev/rules.d/45-$(ORG_SMALL_NAME).rules
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user