diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-02-15 09:27:10 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-02-15 09:27:10 +0000 |
commit | c7974636858b323027d049be8a3ac36779755935 (patch) | |
tree | 5b418cf09d5b5b5060ad18a2593b0dd937841b98 /Makefile | |
parent | 87281ed1483f6f656b2c2c6226843453fd0588cc (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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |