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:
parent
fc7f569992
commit
abbdb68acb
3
Makefile
3
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)
|
||||
|
Loading…
Reference in New Issue
Block a user