Commit 0de7b0eca01a0d12c8a00f99c3165203be3efba1

Ivan Epifanov 2020-12-14T02:08:29

Fix makefile

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/Makefile.vita.dolce b/Makefile.vita.dolce
index 6237546..4e2a643 100644
--- a/Makefile.vita.dolce
+++ b/Makefile.vita.dolce
@@ -53,8 +53,8 @@ clean:
 	@rm -f $(TARGET_LIB) $(OBJS)
 
 install: $(TARGET_LIB)
-	@mkdir -p "$(DOLCESDK)/arm-dolce-eabi/lib"
-	@cp  $(TARGET_LIB) $(DOLCESDK)/arm-dolce-eabi/lib
-	@mkdir -p "$(DOLCESDK)/arm-dolce-eabi/include/SDL2"
-	@cp include/*.h "$(DOLCESDK)/arm-dolce-eabi/include/SDL2"
+	@mkdir -p "$(DESTDIR)$(DOLCESDK)/arm-dolce-eabi/lib"
+	@cp  $(TARGET_LIB) $(DESTDIR)$(DOLCESDK)/arm-dolce-eabi/lib
+	@mkdir -p "$(DESTDIR)$(DOLCESDK)/arm-dolce-eabi/include/SDL2"
+	@cp include/*.h "$(DESTDIR)$(DOLCESDK)/arm-dolce-eabi/include/SDL2"
 	@echo "Installed!"