From abbdb68acb518b70c4e38ab2d31133bca3f37850 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sun, 10 May 2015 15:46:57 -0700 Subject: [PATCH] Makefile: remove usage of GNU install-specific flag The -D flag, though useful, is a GNU extension. Instead explicitly create the directory using `install -d` before moving the executable. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b4c6065..d1dd9fe 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,8 @@ clean: @rm -rf {$(SRC_DIR),$(TESTS_DIR)}/*.o $(EXECUTABLE) $(TESTS_EXECUTABLE) install: - @install -Dm755 $(EXECUTABLE) $(DESTDIR)$(PREFIX)/bin/$(EXECUTABLE) + @install -d $(DESTDIR)$(PREFIX)/bin + @install -m755 $(EXECUTABLE) $(DESTDIR)$(PREFIX)/bin/$(EXECUTABLE) uninstall: @rm -f $(PREFIX)/bin/$(EXECUTABLE)