chiark / gitweb /
only install *.rules
[elogind.git] / Makefile
index 8179710be1f23640c2b3847f477e6b063601645f..92ca846bec7ee7773de5febcc388d6b8c90b3913 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 #
 
-VERSION = 113
+VERSION = 115
 
 # set this to make use of syslog
 USE_LOG = true
@@ -230,11 +230,11 @@ install-config:
        @ if [ ! -r $(DESTDIR)$(configdir)/udev.conf ]; then \
                $(INSTALL_DATA) etc/udev/udev.conf $(DESTDIR)$(configdir); \
        fi
-       @ if [ ! -r $(DESTDIR)$(configdir)/rules.d/50-udev.rules ]; then \
-               echo; \
-               echo "pick a udev rules file from the etc/udev directory that matches your distribution"; \
-               echo; \
-       fi
+       @ for i in etc/udev/rules.d/*.rules; do \
+               if [ ! -r $(DESTDIR)$(configdir)/rules.d/$$(basename $$i) ]; then \
+                       $(INSTALL_DATA) $$i $(DESTDIR)$(configdir)/rules.d; \
+               fi \
+       done
        @ extras="$(EXTRAS)"; for target in $$extras; do \
                $(MAKE) -C $$target $@ || exit 1; \
        done;