summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-03-25 00:03:28 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:12 -0700
commitdf73b398de73acbf9f9b0e49b872968460f1eb28 (patch)
treedcf2ad346806b85ed7c4b7c2a939877d10d888ac
parent1f5caf43c88a247d36d1c8362009cda59f3ac729 (diff)
[PATCH] create the /etc/dev.d/ directories in 'make install'
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4481ee1bfa..94b873d2f7 100644
--- a/Makefile
+++ b/Makefile
@@ -53,6 +53,7 @@ mandir = ${prefix}/usr/share/man
hotplugdir = ${etcdir}/hotplug.d/default
configdir = ${etcdir}/udev/
initdir = ${etcdir}/init.d/
+dev_ddir = ${etcdir}/dev.d/
srcdir = .
INSTALL = /usr/bin/install -c
@@ -349,7 +350,11 @@ install-config: $(GEN_CONFIGS)
$(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.permissions $(DESTDIR)$(configdir); \
fi
-install: install-initscript install-config all
+install-dev.d:
+ $(INSTALL) -d $(DESTDIR)$(dev_ddir)
+ $(INSTALL) -d $(DESTDIR)$(dev_ddir)default/
+
+install: install-initscript install-config install-dev.d all
$(INSTALL) -d $(DESTDIR)$(udevdir)
$(INSTALL) -d $(DESTDIR)$(hotplugdir)
$(INSTALL_PROGRAM) -D $(ROOT) $(DESTDIR)$(sbindir)/$(ROOT)
@@ -393,6 +398,8 @@ 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 \