summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-04-01 23:37:43 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:14 -0700
commit42e4b6819ff91725fc101e1169e30ed27a7da3ca (patch)
tree15ebda2f102ed51282064af6da6fac05340eeba8
parentc40f61e6e86943c3e1342b20b1c7d19ce30cc5a5 (diff)
[PATCH] add install and uninstall the etc/dev.d/net/hotplug.dev file to the Makefile
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 652e712d77..2504034b13 100644
--- a/Makefile
+++ b/Makefile
@@ -354,6 +354,13 @@ install-config: $(GEN_CONFIGS)
install-dev.d:
$(INSTALL) -d $(DESTDIR)$(dev_ddir)
$(INSTALL) -d $(DESTDIR)$(dev_ddir)default/
+ $(INSTALL_PROGRAM) -D etc/dev.d/net/hotplug.dev $(DESTDIR)$(dev_ddir)net/hotplug.dev
+
+uninstall-dev.d:
+ - rm $(dev_ddir)net/hotplug.dev
+ - rmdir $(dev_ddir)net
+ - rmdir $(dev_ddir)default
+ - rmdir $(dev_ddir)
install: install-initscript install-config install-dev.d all
$(INSTALL) -d $(DESTDIR)$(udevdir)
@@ -381,7 +388,7 @@ endif
-C $$target $@ ; \
done ; \
-uninstall:
+uninstall: uninstall-dev.d
- rm $(hotplugdir)/udev.hotplug
- rm $(configdir)/udev.permissions
- rm $(configdir)/udev.rules
@@ -399,8 +406,6 @@ uninstall:
- rm $(usrbindir)/$(INFO)
- rmdir $(hotplugdir)
- rmdir $(configdir)
- - rmdir $(dev_ddir)default
- - rmdir $(dev_ddir)
- rm $(udevdir)/.udev.tdb
- rmdir $(udevdir)
@extras="$(EXTRAS)" ; for target in $$extras ; do \