aboutsummaryrefslogtreecommitdiffstats
path: root/openembedded-layer/recipes-support/qmi-gps-proxy/files/fix_makefile.patch
blob: a0ac51cf734c32db0eb8cd2e4c6738cbf9c7bd8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/Makefile b/Makefile
index 2b611a1..0040626 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ OUT := gps_proxy
 
 CFLAGS := -Wall -g -I../qrtr/lib
 LDFLAGS := -L../qrtr -lqrtr
+prefix := /usr/local
 
 SRCS := qmi_gps.c qmi_tlv.c gps_proxy.c util.c
 OBJS := $(SRCS:.c=.o)
@@ -12,8 +13,8 @@ $(OUT): $(OBJS)
 #%.c: %.qmi
 #	qmic < $<
 
-test: $(OUT)
-	./$(OUT)
+install: $(OUT)
+	install -D -m 755 $< $(DESTDIR)$(prefix)/bin/$<
 
 clean:
 	rm -f $(OUT) $(OBJS)