diff --git a/Makefile b/Makefile index 716e8eb..edda1e2 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ # Makefile for has # https://github.com/kdabir/has +# Sadly, longopts like --verbose are not working on MacOS for cp, mkdir and rm + # PREFIX is an environment variable. # Use default value if not set. @@ -14,11 +16,11 @@ has : # ensure 'has' in repo git checkout --force -- has +# install 'has' in specified directory install : has - # install 'has' in specified directory chmod 755 has && \ - mkdir --verbose --parents $(DESTDIR)$(PREFIX)/bin && \ - cp --verbose --update has $(DESTDIR)$(PREFIX)/bin/has + mkdir -v -p $(DESTDIR)$(PREFIX)/bin && \ + cp -v has $(DESTDIR)$(PREFIX)/bin/has # update: has update : update-fetch has @@ -29,10 +31,10 @@ update-fetch : update-force update-force : # remove local repo 'has' to force update - rm --force has + rm -f has uninstall : - rm --force /usr/local/bin/has + rm -f /usr/local/bin/has .PHONY: test install uninstall update