summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
Diffstat (limited to 'extras')
-rw-r--r--extras/ata_id/Makefile4
-rw-r--r--extras/cdrom_id/Makefile4
-rw-r--r--extras/dasd_id/Makefile4
-rw-r--r--extras/edd_id/Makefile4
-rw-r--r--extras/path_id/Makefile58
-rwxr-xr-xextras/path_id/path_id (renamed from extras/path_id)0
-rw-r--r--extras/scsi_id/Makefile6
-rw-r--r--extras/usb_id/Makefile4
-rw-r--r--extras/volume_id/Makefile4
9 files changed, 74 insertions, 14 deletions
diff --git a/extras/ata_id/Makefile b/extras/ata_id/Makefile
index 690100082e..64d6868062 100644
--- a/extras/ata_id/Makefile
+++ b/extras/ata_id/Makefile
@@ -49,11 +49,11 @@ clean:
.PHONY: clean
install-bin: all
- $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
+ $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG)
.PHONY: install-bin
uninstall-bin:
- - rm $(DESTDIR)$(sbindir)/$(PROG)
+ - rm $(DESTDIR)$(libudevdir)/$(PROG)
.PHONY: uninstall-bin
install-man:
diff --git a/extras/cdrom_id/Makefile b/extras/cdrom_id/Makefile
index c7479ed4ed..d7887e61ed 100644
--- a/extras/cdrom_id/Makefile
+++ b/extras/cdrom_id/Makefile
@@ -49,11 +49,11 @@ clean:
.PHONY: clean
install-bin: all
- $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
+ $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG)
.PHONY: install-bin
uninstall-bin:
- - rm $(DESTDIR)$(sbindir)/$(PROG)
+ - rm $(DESTDIR)$(libudevdir)/$(PROG)
.PHONY: uninstall-bin
install-man:
diff --git a/extras/dasd_id/Makefile b/extras/dasd_id/Makefile
index 76f5949c12..9ad000b8fd 100644
--- a/extras/dasd_id/Makefile
+++ b/extras/dasd_id/Makefile
@@ -49,11 +49,11 @@ clean:
.PHONY: clean
install-bin: all
- $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
+ $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG)
.PHONY: install-bin
uninstall-bin:
- - rm $(DESTDIR)$(sbindir)/$(PROG)
+ - rm $(DESTDIR)$(libudevdir)/$(PROG)
.PHONY: uninstall-bin
install-man:
diff --git a/extras/edd_id/Makefile b/extras/edd_id/Makefile
index 9671878a57..52f862da11 100644
--- a/extras/edd_id/Makefile
+++ b/extras/edd_id/Makefile
@@ -49,11 +49,11 @@ clean:
.PHONY: clean
install-bin: all
- $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
+ $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG)
.PHONY: install-bin
uninstall-bin:
- - rm $(DESTDIR)$(sbindir)/$(PROG)
+ - rm $(DESTDIR)$(libudevdir)/$(PROG)
.PHONY: uninstall-bin
install-man:
diff --git a/extras/path_id/Makefile b/extras/path_id/Makefile
new file mode 100644
index 0000000000..32747a71d1
--- /dev/null
+++ b/extras/path_id/Makefile
@@ -0,0 +1,58 @@
+# Makefile for udev extra invoked from the udev main Makefile
+#
+# Copyright (C) 2004-2006 Kay Sievers <kay.sievers@vrfy.org>
+#
+# Released under the GNU General Public License, version 2.
+#
+
+PROG = path_id
+MAN_PAGES =
+
+prefix =
+etcdir = ${prefix}/etc
+sbindir = ${prefix}/sbin
+usrbindir = ${prefix}/usr/bin
+usrsbindir = ${prefix}/usr/sbin
+libudevdir = ${prefix}/lib/udev
+mandir = ${prefix}/usr/share/man
+configdir = ${etcdir}/udev/
+
+INSTALL = /usr/bin/install -c
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_SCRIPT = ${INSTALL_PROGRAM}
+
+all: $(PROG) $(MAN_PAGES)
+.PHONY: all
+.DEFAULT: all
+
+# man pages
+%.8: %.xml
+ $(E) " XMLTO " $@
+ $(Q) xmlto man $?
+.PRECIOUS: %.8
+
+clean:
+ $(E) " CLEAN "
+.PHONY: clean
+
+install-bin: all
+ $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG)
+.PHONY: install-bin
+
+uninstall-bin:
+ - rm $(DESTDIR)$(libudevdir)/$(PROG)
+.PHONY: uninstall-bin
+
+install-man:
+ @echo "Please create a man page for this tool."
+.PHONY: uninstall-man
+
+uninstall-man:
+ @echo "Please create a man page for this tool."
+.PHONY: uninstall-man
+
+install-config:
+ @echo "no config file to install"
+.PHONY: install-config
+
diff --git a/extras/path_id b/extras/path_id/path_id
index 0274be391a..0274be391a 100755
--- a/extras/path_id
+++ b/extras/path_id/path_id
diff --git a/extras/scsi_id/Makefile b/extras/scsi_id/Makefile
index 544954dc7e..c35d7dab94 100644
--- a/extras/scsi_id/Makefile
+++ b/extras/scsi_id/Makefile
@@ -58,11 +58,13 @@ clean:
.PHONY: clean
install-bin: all
- $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
+ $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG)
+ ln -sf $(DESTDIR)$(libudevdir)/$(PROG) $(DESTDIR)$(sbindir)/$(PROG)
.PHONY: install-bin
uninstall-bin:
- - rm $(DESTDIR)$(sbindir)/$(PROG)
+ - rm $(DESTDIR)$(libudevdir)/$(PROG)
+ - rm -f $(DESTDIR)$(sbindir)/$(PROG)
.PHONY: uninstall-bin
install-man:
diff --git a/extras/usb_id/Makefile b/extras/usb_id/Makefile
index 40555fd52c..26e2fedd4d 100644
--- a/extras/usb_id/Makefile
+++ b/extras/usb_id/Makefile
@@ -49,11 +49,11 @@ clean:
.PHONY: clean
install-bin: all
- $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
+ $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG)
.PHONY: install-bin
uninstall-bin:
- - rm $(DESTDIR)$(sbindir)/$(PROG)
+ - rm $(DESTDIR)$(libudevdir)/$(PROG)
.PHONY: uninstall-bin
install-man:
diff --git a/extras/volume_id/Makefile b/extras/volume_id/Makefile
index 759ea549cc..f8d54a2309 100644
--- a/extras/volume_id/Makefile
+++ b/extras/volume_id/Makefile
@@ -55,12 +55,12 @@ clean:
.PHONY: clean
install-bin: all
- $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
+ $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG)
$(MAKE) -C lib install
.PHONY: install-bin
uninstall-bin:
- - rm $(DESTDIR)$(sbindir)/$(PROG)
+ - rm $(DESTDIR)$(libudevdir)/$(PROG)
$(MAKE) -C lib uninstall
.PHONY: uninstall-bin