debian/postinst: fix kinect_fetch_fw usage for the new upstream version
[kinect-audio-setup.git] / Makefile
index 70ad841..28813ba 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,16 @@
 all:
 all:
-       make -C kinect_upload_fw 
+       $(MAKE) -C kinect_upload_fw
 
 install:
 
 install:
-       make -C kinect_upload_fw 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
        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
-       
-       # We prare the firmware location, but it should be downloaded at
-       # package installation time
-       install -d $(DESTDIR)/lib/firmware/kinect
-
-clean: 
-       make -C kinect_upload_fw clean
+       ./kinect_patch_udev_rules \
+         "$(FIRMWARE_PATH)" \
+         "$(LOADER_PATH)" \
+         "$(DESTDIR)/lib/udev/rules.d/55-kinect_audio.rules"
 
 
-changelog:
-       git log --pretty="format:%ai  %aN  <%aE>%n%n%x09* %s%d%n" > ChangeLog
+clean:
+       $(MAKE) -C kinect_upload_fw clean