Makefile: don't install the udev rules automatically in the install target
authorAntonio Ospite <ao2@ao2.it>
Sat, 9 Jan 2016 12:25:26 +0000 (13:25 +0100)
committerAntonio Ospite <ao2@ao2.it>
Sat, 9 Jan 2016 14:13:31 +0000 (15:13 +0100)
Also use kinect_patch_udev_rules to be able to patch the udev rules tile
after installing it.

Makefile

index b3b755d..7675311 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,14 @@ all:
 
 install:
        $(MAKE) -C kinect_upload_fw install
+
+install_udev_rules:
        install -d $(DESTDIR)/lib/udev/rules.d
        install -m 644 contrib/55-kinect_audio.rules.in $(DESTDIR)/lib/udev/rules.d/55-kinect_audio.rules
+       ./kinect_patch_udev_rules \
+         "$(FIRMWARE_PATH)" \
+         "$(LOADER_PATH)" \
+         "$(DESTDIR)/lib/udev/rules.d/55-kinect_audio.rules"
 
 clean:
        $(MAKE) -C kinect_upload_fw clean