]> err.no Git - systemd/commitdiff
[PATCH] add install and uninstall the etc/dev.d/net/hotplug.dev file to the Makefile
authorgreg@kroah.com <greg@kroah.com>
Fri, 2 Apr 2004 07:37:43 +0000 (23:37 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:35:14 +0000 (21:35 -0700)
Makefile

index 652e712d775deca5f948bd42bb7a0e9adcd6fb03..2504034b1396711dce67c959961a1c4bc1eb52ee 100644 (file)
--- 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 \