summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2007-09-11 17:20:54 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-09-11 17:20:54 +0200
commit554074c9ca2f1b8876176887e4656d06b870f2cd (patch)
tree78b59377016ebfca054f886eeb25542c6f57f574
parent16511863d928e7fd82f15ae64850ab21e74f0f16 (diff)
only install *.rules
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 39ffc7dd0e..92ca846bec 100644
--- 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 \