+
+
+ifeq ($(DBUS), true)
+install-dbus-policy:
+ $(INSTALL) -d $(DESTDIR)$(dbusdir)
+ $(INSTALL_DATA) udev_sysbus_policy.conf $(DESTDIR)$(dbusdir)
+uninstall-dbus-policy:
+ - rm $(DESTDIR)$(dbusdir)/udev_sysbus_policy.conf
+else
+install-dbus-policy:
+ -
+uninstall-dbus-policy:
+ -
+endif
+
+install: install-dbus-policy all $(GEN_CONFIGS)
+ $(INSTALL) -d $(DESTDIR)$(udevdir)
+ $(INSTALL) -d $(DESTDIR)$(configdir)
+ $(INSTALL) -d $(DESTDIR)$(hotplugdir)
+ $(INSTALL_PROGRAM) -D $(ROOT) $(DESTDIR)$(sbindir)/$(ROOT)
+ $(INSTALL_PROGRAM) -D etc/init.d/udev $(DESTDIR)$(initdir)/udev
+ $(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
+ $(INSTALL_DATA) udev.conf $(DESTDIR)$(configdir)
+ $(INSTALL_DATA) udev.rules $(DESTDIR)$(configdir)
+ $(INSTALL_DATA) udev.permissions $(DESTDIR)$(configdir)
+ - rm -f $(DESTDIR)$(hotplugdir)/udev.hotplug
+ - ln -s $(sbindir)/$(ROOT) $(DESTDIR)$(hotplugdir)/udev.hotplug
+ @for target in $(EXTRAS) ; do \
+ echo $$target ; \
+ $(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
+ -C $$target $@ ; \
+ done ; \
+
+uninstall: uninstall-dbus-policy
+ - rm $(hotplugdir)/udev.hotplug
+ - rm $(configdir)/udev.permissions
+ - rm $(configdir)/udev.rules
+ - rm $(configdir)/udev.conf
+ - rm $(mandir)/man8/udev.8
+ - rm $(sbindir)/$(ROOT)
+ - rmdir $(hotplugdir)
+ - rmdir $(configdir)
+ - rmdir $(udevdir)
+ @for target in $(EXTRAS) ; do \
+ echo $$target ; \
+ $(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
+ -C $$target $@ ; \
+ done ; \
+
+