Add install target to Makefile.
authorWalter Fetter Lages <w.fetter@ieee.org>
Sat, 5 Dec 2020 07:08:19 +0000 (04:08 -0300)
committerWalter Fetter Lages <w.fetter@ieee.org>
Sat, 5 Dec 2020 07:08:19 +0000 (04:08 -0300)
Makefile

index f89f87b..5d1f9b3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,3 +32,8 @@ doc: html latex man
 
 html latex man: Doxyfile $(SRCS) bno055.h
        doxygen
+
+install:
+       install -d $(PREFIX)/lib$(BITS) $(PREFIX)/include
+       install -m 644 libbno055.a $(PREFIX)/lib$(BITS)
+       install -m 644 bno055.h $(PREFIX)/include