--- a/drivers/can_anagate_linux/Makefile Sat Oct 12 09:14:38 2013 +0900
+++ b/drivers/can_anagate_linux/Makefile Sun Jun 08 17:42:47 2014 +0200
@@ -43,7 +43,7 @@
DRIVER = $(OBJS)
endif
-TARGET_SOFILES = $(PREFIX)/lib/$(DRIVER)
+TARGET_SOFILES = $(DESTDIR)$(PREFIX)/lib/$(DRIVER)
all: driver
@@ -56,8 +56,8 @@
$(CC) -shared -Wl,-soname,libcanfestival_$(CAN_DRIVER).so $(CAN_DLL_CFLAGS) -o $@ $<
install: libcanfestival_$(CAN_DRIVER).so
- mkdir -p $(PREFIX)/lib/
- cp $< $(PREFIX)/lib/
+ mkdir -p $(DESTDIR)$(PREFIX)/lib/
+ cp $< $(DESTDIR)$(PREFIX)/lib/
uninstall:
rm -f $(TARGET_SOFILES)