summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <og@satcom1.com>2018-12-01 12:08:14 +0100
committerOlivier Gayot <og@satcom1.com>2018-12-01 12:10:07 +0100
commit2c1e9c3068abeff31dcfa8082ac0096d2ff88593 (patch)
tree53e468bd5c46ee1b4e3b9eb691ebc7a8e831056a
parent3282ab0cd838ab7e070021cd2a537d78e60d263a (diff)
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 <og@satcom1.com>
-rw-r--r--Makefile4
1 files 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