From: Philippe Gerum <r...@xenomai.org>

Uninstall udev rules.

Signed-off-by: Philippe Gerum <r...@xenomai.org>
---
 Makefile.am | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index ec1d0a07e..891e53f66 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -29,7 +29,7 @@ dist-hook:
        rm -fr `find $(distdir) -name '.svn' -o -name CVS  -o -name '.#*' \
                -o -name '*~' -o -name autom4te.cache`
 
-udev-rules:
+install-udev-rules:
 if XENO_COBALT
        if test -r $(DESTDIR)/$(sysconfdir)/udev/udev.rules ; then \
            for f in $(srcdir)/kernel/cobalt/udev/*.rules ; do \
@@ -45,10 +45,19 @@ if XENO_COBALT
        fi
 endif
 
+uninstall-udev-rules:
+if XENO_COBALT
+       cd $(srcdir)/kernel/cobalt/udev && for f in *.rules; do \
+           rm -f $(DESTDIR)/$(sysconfdir)/udev/rules.d/$$f ; \
+       done
+endif
+
 # legacy alias
 install-user: install
 
-install-exec-local: udev-rules
+install-exec-local: install-udev-rules
+
+uninstall-local: uninstall-udev-rules
 
 uninstall-local:
 if XENO_COBALT
-- 
2.24.1


Reply via email to