chiark / gitweb /
Makefile: do not require GNU install
[elogind.git] / extras / firmware / Makefile
index 55ba22386f8078813dec79efa4e5d96abf26e2e3..5e84acb15634a6a5fa3bcde80cb680097b5f65f8 100644 (file)
@@ -17,10 +17,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
@@ -37,7 +37,8 @@ clean:
 .PHONY: clean
 
 install-bin: all
-       $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG)
+       $(INSTALL) -d $(DESTDIR)$(libudevdir)
+       $(INSTALL_SCRIPT) $(PROG) $(DESTDIR)$(libudevdir)/$(PROG)
 .PHONY: install-bin
 
 uninstall-bin:
@@ -46,7 +47,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."