From 2c1e9c3068abeff31dcfa8082ac0096d2ff88593 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sat, 1 Dec 2018 12:08:14 +0100 Subject: Fix library installation Running "make install" was failing if the target directory in /usr/include was not present. Fixed by using the install command instead of cp. Signed-off-by: Olivier Gayot --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 683aecf..1959fe4 100644 --- a/Makefile +++ b/Makefile @@ -52,8 +52,8 @@ re: fclean all install: @echo '######## Installing $(basename $(NAME)) ########' - cp $(NAME) /usr/lib/ - cp $(HEADERS) /usr/include/sdl-digit/ + install -D $(NAME) --target-directory=/usr/lib/ + install -D $(HEADERS) --target-directory=/usr/include/sdl-digit/ debug: CFLAGS += $(DEBUG) debug: re -- cgit v1.2.3