1# vim:set sw=8 nosta: 2 3BINS= 4SUBDIRS= 5 6KERNELVER ?= `uname -r` 7 8all: 9 10install: 11 $(INSTALL_DIR) $(PREFIX)/etc 12 case "$(KERNELVER)" in \ 13 3.*) \ 14 $(INSTALL) hotplug2.rules-2.6kernel $(PREFIX)/etc/hotplug2.rules \ 15 ;; \ 16 2.6.*) \ 17 $(INSTALL) hotplug2.rules-2.6kernel $(PREFIX)/etc/hotplug2.rules \ 18 ;; \ 19 *) \ 20 $(INSTALL) hotplug2.rules-2.4kernel $(PREFIX)/etc/hotplug2.rules \ 21 ;; \ 22 esac 23 # remove comments, compress whitespace 24 @sed -i 's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' $(PREFIX)/etc/hotplug2.rules 25 26include ../common.mak 27MAKEDEP:= 28