From e6a3d6040ae2e265e5e48cb8bb4b5918c78cfd45 Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Mon, 10 Oct 2022 16:06:39 +0200 Subject: [PATCH] [SKIP CI] fix: Make makefiles portable -D isn't supported on MacOS (sample size: 1) Signed-off-by: Sam Therapy --- GNUmakefile | 10 +++++----- Makefile | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index d653d9c..f873057 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -16,10 +16,10 @@ install: $(GO) install $(GOFLAGS) . else install: all - install -Dm755 $(PROG) $(DESTDIR)$(PREFIX)/$(BIN)/$(PROG) - install -Dm644 doc/$(PROG).1 $(DESTDIR)$(MAN)/man1/$(PROG).1 + install -m755 $(PROG) $(DESTDIR)$(PREFIX)/$(BIN)/$(PROG) + install -m644 doc/$(PROG).1 $(DESTDIR)$(MAN)/man1/$(PROG).1 # completions need to go in one specific place :) - install -Dm644 completions/bash.bash $(DESTDIR)$(PREFIX)/$(SHARE)/bash-completion/completions/$(PROG) - install -Dm644 completions/fish.fish $(DESTDIR)$(PREFIX)/$(SHARE)/fish/vendor_completions.d/$(PROG).fish - install -Dm644 completions/zsh.zsh $(DESTDIR)$(PREFIX)/$(SHARE)/zsh/site-functions/_$(PROG) + install -m644 completions/bash.bash $(DESTDIR)$(PREFIX)/$(SHARE)/bash-completion/completions/$(PROG) + install -m644 completions/fish.fish $(DESTDIR)$(PREFIX)/$(SHARE)/fish/vendor_completions.d/$(PROG).fish + install -m644 completions/zsh.zsh $(DESTDIR)$(PREFIX)/$(SHARE)/zsh/site-functions/_$(PROG) endif diff --git a/Makefile b/Makefile index 49cc06f..f0e3f81 100644 --- a/Makefile +++ b/Makefile @@ -8,9 +8,9 @@ EXE := $(PROG) ## install: installs awl .PHONY: install install: all - install -Dm755 $(PROG) $(DESTDIR)$(PREFIX)/$(BIN)/$(PROG) - install -Dm644 doc/$(PROG).1 $(DESTDIR)$(MAN)/man1/$(PROG).1 + install -m755 $(PROG) $(DESTDIR)$(PREFIX)/$(BIN)/$(PROG) + install -m644 doc/$(PROG).1 $(DESTDIR)$(MAN)/man1/$(PROG).1 # completions need to go in one specific place :) - install -Dm644 completions/bash.bash $(DESTDIR)$(PREFIX)$(SHARE)/bash-completion/completions/$(PROG) - install -Dm644 completions/fish.fish $(DESTDIR)$(PREFIX)$(SHARE)/fish/vendor_completions.d/$(PROG).fish - install -Dm644 completions/zsh.zsh $(DESTDIR)$(PREFIX)$(SHARE)/zsh/site-functions/_$(PROG) + install -m644 completions/bash.bash $(DESTDIR)$(PREFIX)$(SHARE)/bash-completion/completions/$(PROG) + install -m644 completions/fish.fish $(DESTDIR)$(PREFIX)$(SHARE)/fish/vendor_completions.d/$(PROG).fish + install -m644 completions/zsh.zsh $(DESTDIR)$(PREFIX)$(SHARE)/zsh/site-functions/_$(PROG)