]> err.no Git - systemd/commitdiff
only install *.rules
authorHarald Hoyer <harald@redhat.com>
Tue, 11 Sep 2007 15:20:54 +0000 (17:20 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 11 Sep 2007 15:20:54 +0000 (17:20 +0200)
Makefile

index 39ffc7dd0e853b6657474bc484b91e89afe10b86..92ca846bec7ee7773de5febcc388d6b8c90b3913 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -230,9 +230,9 @@ install-config:
        @ if [ ! -r $(DESTDIR)$(configdir)/udev.conf ]; then \
                $(INSTALL_DATA) etc/udev/udev.conf $(DESTDIR)$(configdir); \
        fi
-       @ for i in $(shell ls -1 etc/udev/rules.d); do \
-               if [ ! -r $(DESTDIR)$(configdir)/rules.d/$$i ]; then \
-                       $(INSTALL_DATA) etc/udev/rules.d/$$i $(DESTDIR)$(configdir)/rules.d; \
+       @ 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 \