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