Skip to content

Commit

Permalink
make: install also header files
Browse files Browse the repository at this point in the history
headerfiles needed for developing purposes

Signed-off-by: Silvio Fricke <[email protected]>
  • Loading branch information
silvio committed Jul 15, 2020
1 parent 6bbdd60 commit 52f5afc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 52f5afc

Please sign in to comment.