diff mbox series

[2/3] Makefile: install all files

Message ID 1532099189-3225-2-git-send-email-sbabic@denx.de
State Accepted
Headers show
Series [1/3] Bindings for LUA as shared library | expand

Commit Message

Stefano Babic July 20, 2018, 3:06 p.m. UTC
Install headers and library, not just the tools.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 5011492..fd77245 100644
--- a/Makefile
+++ b/Makefile
@@ -427,10 +427,18 @@  ${tools-bins}: ${tools-objs} ${swupdate-libs} FORCE
 
 install: all
 	install -d ${DESTDIR}/usr/bin
+	install -d ${DESTDIR}/usr/include
+	install -d ${DESTDIR}/usr/lib
+	install -d ${DESTDIR}/usr/lib/lua/$(LUAVER)
 	install -m 755 swupdate ${DESTDIR}/usr/bin
 	for i in ${tools-bins};do \
 		install -m 755 $$i ${DESTDIR}/usr/bin; \
 	done
+	install -m 0644 include/network_ipc.h ${DESTDIR}/usr/include
+	install -m 0644 include/swupdate_status.h ${DESTDIR}/usr/include
+	install -m 0644 include/progress_ipc.h ${DESTDIR}/usr/include
+	install -m 0755 ipc/lib.a ${DESTDIR}/usr/lib/libswupdate.a
+	install -m 0755 lua_swupdate.so $(DESTDIR)/usr/lib/lua/$(LUAVER)
 
 PHONY += run-tests
 tests: \