Skip to content

Commit

Permalink
make: rewrite install target to use DESTDIR
Browse files Browse the repository at this point in the history
DESTDIR is a general variable to specify the target directory of the
installation, which is independent of the real directory in use.

Signed-off-by: Silvio Fricke <[email protected]>
  • Loading branch information
silvio committed Jul 15, 2020
1 parent 09dcf2c commit 6bbdd60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ all: compile
compile: $(LIBNAME) $(TESTNAME)

install: $(LIBNAME)
cp $(LIBNAME) /usr/lib/$(LIBNAME)
cp $(TESTNAME) /usr/bin/$(TESTNAME)
install -d 0755 ${DESTDIR}/usr/lib $(DESTDIR)/usr/bin
install -m 0644 $(LIBNAME) $(DESTDIR)/usr/lib/$(LIBNAME)
install -m 0644 $(TESTNAME) $(DESTDIR)/usr/bin/$(TESTNAME)

fix-i2c:
echo -n 1 > /sys/module/i2c_bcm2708/parameters/combined
Expand Down

0 comments on commit 6bbdd60

Please sign in to comment.