From 52f5afce25b4a0641eed70b745bf5e65b4ab120b Mon Sep 17 00:00:00 2001 From: Silvio Fricke Date: Wed, 15 Jul 2020 15:18:12 +0200 Subject: [PATCH] make: install also header files headerfiles needed for developing purposes Signed-off-by: Silvio Fricke --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 136e3fa..f0d0aff 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ CFLAGS?=-fPIC CFLAGS_SHARED?=-shared OBJ=mma8451.o LIBNAME=libmma8451.so +HEADER=mma8451.h TESTOBJ=mma8451-test.o TESTNAME=mma8451-test @@ -11,9 +12,10 @@ all: compile compile: $(LIBNAME) $(TESTNAME) install: $(LIBNAME) - install -d 0755 ${DESTDIR}/usr/lib $(DESTDIR)/usr/bin + install -d 0755 ${DESTDIR}/usr/lib $(DESTDIR)/usr/bin $(DESTDIR)/usr/include/mma8451 install -m 0644 $(LIBNAME) $(DESTDIR)/usr/lib/$(LIBNAME) install -m 0644 $(TESTNAME) $(DESTDIR)/usr/bin/$(TESTNAME) + install -m 0644 $(HEADER) $(DESTDIR)/usr/include/mma8451/$(HEADER) fix-i2c: echo -n 1 > /sys/module/i2c_bcm2708/parameters/combined