summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile40
-rw-r--r--udev.8.in (renamed from udev.8)0
-rw-r--r--udevd.8.in (renamed from udevd.8)0
-rw-r--r--udevinfo.8.in (renamed from udevinfo.8)0
-rw-r--r--udevstart.8.in (renamed from udevstart.8)0
-rw-r--r--udevtest.8.in (renamed from udevtest.8)0
6 files changed, 25 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 2504034b13..01fb2a4486 100644
--- a/Makefile
+++ b/Makefile
@@ -246,6 +246,12 @@ GEN_CONFIGS = $(LOCAL_CFG_DIR)/udev.conf
$(LOCAL_CFG_DIR)/udev.conf:
sed -e "s:@udevdir@:$(udevdir):" < $(LOCAL_CFG_DIR)/udev.conf.in > $@
+GEN_MANPAGES = udev.8 udevd.8 udevinfo.8 udevstart.8 udevtest.8
+GEN_MANPAGESIN = udev.8.in udevd.8.in udevinfo.8.in udevstart.8.in udevtest.8.in
+# Rules on how to create the man pages
+$(GEN_MANPAGES): $(GEN_MANPAGESIN)
+ sed -e "s:@udevdir@:$(udevdir):" < $@.in > $@
+
$(OBJS): $(GEN_HEADERS)
$(ROOT).o: $(GEN_HEADERS)
@@ -286,7 +292,7 @@ $(RULER): $(RULER).o $(OBJS) $(HEADERS) $(LIBC)
clean:
-find . \( -not -type d \) -and \( -name '*~' -o -name '*.[oas]' \) -type f -print \
| xargs rm -f
- -rm -f core $(ROOT) $(GEN_HEADERS) $(GEN_CONFIGS) $(INFO) $(DAEMON) $(SENDER) $(TESTER) $(STARTER) $(RULER)
+ -rm -f core $(ROOT) $(GEN_HEADERS) $(GEN_CONFIGS) $(GEN_MANPAGES) $(INFO) $(DAEMON) $(SENDER) $(TESTER) $(STARTER) $(RULER)
$(MAKE) -C klibc clean
@extras="$(EXTRAS)" ; for target in $$extras ; do \
echo $$target ; \
@@ -362,7 +368,23 @@ uninstall-dev.d:
- rmdir $(dev_ddir)default
- rmdir $(dev_ddir)
-install: install-initscript install-config install-dev.d all
+install-man: $(GEN_MANPAGES)
+ $(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
+ $(INSTALL_DATA) -D udevinfo.8 $(DESTDIR)$(mandir)/man8/udevinfo.8
+ $(INSTALL_DATA) -D udevtest.8 $(DESTDIR)$(mandir)/man8/udevtest.8
+ $(INSTALL_DATA) -D udevstart.8 $(DESTDIR)$(mandir)/man8/udevstart.8
+ $(INSTALL_DATA) -D udevd.8 $(DESTDIR)$(mandir)/man8/udevd.8
+ - ln -f -s udevd.8 $(DESTDIR)$(mandir)/man8/udevsend.8
+
+uninstall-man:
+ - rm $(mandir)/man8/udev.8
+ - rm $(mandir)/man8/udevinfo.8
+ - rm $(mandir)/man8/udevtest.8
+ - rm $(mandir)/man8/udevstart.8
+ - rm $(mandir)/man8/udevd.8
+ - rm $(mandir)/man8/udevsend.8
+
+install: install-initscript install-config install-man install-dev.d all
$(INSTALL) -d $(DESTDIR)$(udevdir)
$(INSTALL) -d $(DESTDIR)$(hotplugdir)
$(INSTALL_PROGRAM) -D $(ROOT) $(DESTDIR)$(sbindir)/$(ROOT)
@@ -371,12 +393,6 @@ install: install-initscript install-config install-dev.d all
$(INSTALL_PROGRAM) -D $(INFO) $(DESTDIR)$(usrbindir)/$(INFO)
$(INSTALL_PROGRAM) -D $(TESTER) $(DESTDIR)$(usrbindir)/$(TESTER)
$(INSTALL_PROGRAM) -D $(STARTER) $(DESTDIR)$(sbindir)/$(STARTER)
- $(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
- $(INSTALL_DATA) -D udevinfo.8 $(DESTDIR)$(mandir)/man8/udevinfo.8
- $(INSTALL_DATA) -D udevtest.8 $(DESTDIR)$(mandir)/man8/udevtest.8
- $(INSTALL_DATA) -D udevstart.8 $(DESTDIR)$(mandir)/man8/udevstart.8
- $(INSTALL_DATA) -D udevd.8 $(DESTDIR)$(mandir)/man8/udevd.8
- - ln -f -s udevd.8 $(DESTDIR)$(mandir)/man8/udevsend.8
- ln -f -s $(sbindir)/$(SENDER) $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug
ifndef DESTDIR
- killall udevd
@@ -388,18 +404,12 @@ endif
-C $$target $@ ; \
done ; \
-uninstall: uninstall-dev.d
+uninstall: uninstall-man uninstall-dev.d
- rm $(hotplugdir)/udev.hotplug
- rm $(configdir)/udev.permissions
- rm $(configdir)/udev.rules
- rm $(configdir)/udev.conf
- rm $(initdir)/udev
- - rm $(mandir)/man8/udev.8
- - rm $(mandir)/man8/udevinfo.8
- - rm $(mandir)/man8/udevtest.8
- - rm $(mandir)/man8/udevstart.8
- - rm $(mandir)/man8/udevd.8
- - rm $(mandir)/man8/udevsend.8
- rm $(sbindir)/$(ROOT)
- rm $(sbindir)/$(DAEMON)
- rm $(sbindir)/$(SENDER)
diff --git a/udev.8 b/udev.8.in
index 680587a270..680587a270 100644
--- a/udev.8
+++ b/udev.8.in
diff --git a/udevd.8 b/udevd.8.in
index 9d0127b6bc..9d0127b6bc 100644
--- a/udevd.8
+++ b/udevd.8.in
diff --git a/udevinfo.8 b/udevinfo.8.in
index 0588084cac..0588084cac 100644
--- a/udevinfo.8
+++ b/udevinfo.8.in
diff --git a/udevstart.8 b/udevstart.8.in
index c64400cc4f..c64400cc4f 100644
--- a/udevstart.8
+++ b/udevstart.8.in
diff --git a/udevtest.8 b/udevtest.8.in
index 6be7e089cf..6be7e089cf 100644
--- a/udevtest.8
+++ b/udevtest.8.in