1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

Give more flexibility for udev rules file location installment.

This commit is contained in:
Roy Bekken 2015-07-25 22:49:42 +02:00
parent 4c3d71d0a7
commit 07deb6623d

View File

@ -82,12 +82,11 @@ endif # Debian based distro?
# #
############################## ##############################
enable-udev-rules ?= no enable-udev-rules ?= no
prefix := /usr/local
prefix := /usr/local bindir := $(prefix)/bin
bindir := $(prefix)/bin libdir := $(prefix)/lib
libdir := $(prefix)/lib datadir := $(prefix)/share
datadir := $(prefix)/share udevrulesdir := /etc/udev/rules.d
sysconfdir := $(prefix)/etc
INSTALL = cp -a --no-preserve=ownership INSTALL = cp -a --no-preserve=ownership
LN = ln LN = ln
@ -110,6 +109,6 @@ 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) ifneq ($(enable-udev-rules), no)
$(V1) $(MKDIR) -p $(DESTDIR)$(sysconfdir)/udev/rules.d $(V1) $(MKDIR) -p $(DESTDIR)$(udevrulesdir)
$(V1) $(INSTALL) -T $(ROOT_DIR)/package/linux/45-uav.rules $(DESTDIR)$(sysconfdir)/udev/rules.d/45-$(ORG_SMALL_NAME).rules $(V1) $(INSTALL) -T $(ROOT_DIR)/package/linux/45-uav.rules $(DESTDIR)$(udevrulesdir)/45-$(ORG_SMALL_NAME).rules
endif endif