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.
This commit is contained in:
Misty De Meo 2015-05-10 15:46:57 -07:00
parent fc7f569992
commit abbdb68acb

View File

@ -50,7 +50,8 @@ clean:
@rm -rf {$(SRC_DIR),$(TESTS_DIR)}/*.o $(EXECUTABLE) $(TESTS_EXECUTABLE) @rm -rf {$(SRC_DIR),$(TESTS_DIR)}/*.o $(EXECUTABLE) $(TESTS_EXECUTABLE)
install: install:
@install -Dm755 $(EXECUTABLE) $(DESTDIR)$(PREFIX)/bin/$(EXECUTABLE) @install -d $(DESTDIR)$(PREFIX)/bin
@install -m755 $(EXECUTABLE) $(DESTDIR)$(PREFIX)/bin/$(EXECUTABLE)
uninstall: uninstall:
@rm -f $(PREFIX)/bin/$(EXECUTABLE) @rm -f $(PREFIX)/bin/$(EXECUTABLE)