chiark / gitweb /
path_id: remove subsystem whitelist
[elogind.git] / extras / usb_id / Makefile
index 26e2fedd4d7f804e7a7a3024d38dc9061d9dcb5e..09496049a5c6dea26eda42a259e46da1883d313c 100644 (file)
@@ -20,10 +20,10 @@ libudevdir =        ${prefix}/lib/udev
 mandir =       ${prefix}/usr/share/man
 configdir =    ${etcdir}/udev/
 
-INSTALL = /usr/bin/install -c
+INSTALL = install -c
 INSTALL_PROGRAM = ${INSTALL}
 INSTALL_DATA  = ${INSTALL} -m 644
-INSTALL_SCRIPT = ${INSTALL_PROGRAM}
+INSTALL_SCRIPT = ${INSTALL}
 
 all: $(PROG) $(MAN_PAGES)
 .PHONY: all
@@ -49,7 +49,8 @@ clean:
 .PHONY: clean
 
 install-bin: all
-       $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG)
+       $(INSTALL) -d $(DESTDIR)$(libudevdir)
+       $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(libudevdir)/$(PROG)
 .PHONY: install-bin
 
 uninstall-bin:
@@ -58,7 +59,7 @@ uninstall-bin:
 
 install-man:
        @echo "Please create a man page for this tool."
-.PHONY: uninstall-man
+.PHONY: install-man
 
 uninstall-man:
        @echo "Please create a man page for this tool."