X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=extras%2Ffirmware%2FMakefile;h=5e84acb15634a6a5fa3bcde80cb680097b5f65f8;hp=55ba22386f8078813dec79efa4e5d96abf26e2e3;hb=064360cde8f35d8ac6faf418ddfa39b9f3da4347;hpb=1388c830117d68bb623043d9e1803b34ddade8e5 diff --git a/extras/firmware/Makefile b/extras/firmware/Makefile index 55ba22386..5e84acb15 100644 --- a/extras/firmware/Makefile +++ b/extras/firmware/Makefile @@ -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."