summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-08-23 03:31:04 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-08-23 03:31:04 +0200
commit3df9102b678b36de97f924e9ba7cad2c91f98b27 (patch)
tree015f1fd8e76bcfc7f29e98dd0f23ab2aca7591e3 /Makefile
parentae9d3bbd3dde5f6e7d2cf434a916c5f3d3bf68b0 (diff)
Makefile: install default rules
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1c0fda3e0e..36b9547601 100644
--- a/Makefile
+++ b/Makefile
@@ -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 $(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; \
+ fi \
+ done
@ extras="$(EXTRAS)"; for target in $$extras; do \
$(MAKE) -C $$target $@ || exit 1; \
done;