From: Harald Hoyer Date: Tue, 11 Sep 2007 15:20:54 +0000 (+0200) Subject: only install *.rules X-Git-Tag: 174~1823 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=554074c9ca2f1b8876176887e4656d06b870f2cd;p=systemd only install *.rules --- diff --git a/Makefile b/Makefile index 39ffc7dd..92ca846b 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 \