summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-02-15 09:27:10 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-02-15 09:27:10 +0000
commit684c0926475ea2ccd1bc28a59663dbedc6cd6781 (patch)
tree5b418cf09d5b5b5060ad18a2593b0dd937841b98
parentedb493e06240781ee9ca9fd934d62d60c143aab9 (diff)
allow overriding udev rules dir
Later versions of udev prefer installing (packaged) udev rules under /lib/udev/rules.d . Let's make our path easier to override by packagers. No functional change. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8040 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 25d853f..2699534 100644
--- a/Makefile
+++ b/Makefile
@@ -47,6 +47,8 @@ ifeq (yes,$(HAS_KSRC))
HOTPLUG_FIRMWARE:=$(shell if grep -q '^CONFIG_FW_LOADER=[ym]' $(KCONFIG); then echo "yes"; else echo "no"; fi)
endif
+UDEV_DIR:=/etc/udev/rules.d
+
MODULE_ALIASES:=wcfxs wctdm8xxp wct2xxp
INST_HEADERS:=kernel.h user.h fasthdlc.h wctdm_user.h dahdi_config.h
@@ -135,12 +137,12 @@ uninstall-include:
-rmdir $(DESTDIR)/usr/include/dahdi
install-devices:
- install -d $(DESTDIR)/etc/udev/rules.d
- build_tools/genudevrules > $(DESTDIR)/etc/udev/rules.d/dahdi.rules
- install -m 644 drivers/dahdi/xpp/xpp.rules $(DESTDIR)/etc/udev/rules.d/
+ install -d $(DESTDIR)$(UDEV_DIR)
+ build_tools/genudevrules > $(DESTDIR)$(UDEV_DIR)/dahdi.rules
+ install -m 644 drivers/dahdi/xpp/xpp.rules $(DESTDIR)$(UDEV_DIR)/
uninstall-devices:
- rm -f $(DESTDIR)/etc/udev/rules.d/dahdi.rules
+ rm -f $(DESTDIR)$(UDEV_DIR)/dahdi.rules
install-modules: modules
ifndef DESTDIR