From 684c0926475ea2ccd1bc28a59663dbedc6cd6781 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Mon, 15 Feb 2010 09:27:10 +0000 Subject: 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 --- Makefile | 10 ++++++---- 1 file 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 -- cgit v1.2.3