Description: have install create needed directories

--- a/src/Makefile
+++ b/src/Makefile
@@ -22,10 +22,10 @@
 	$(CC) -shared $(OBJS) $(SHARELINKFLAGS) -o libcanlock.so.2.0.0
 
 install: all
-	$(INSTALL) libcanlock.so.2.0.0 $(DESTDIR)/usr/lib
+	$(INSTALL) -D libcanlock.so.2.0.0 $(DESTDIR)/usr/lib/libcanlock.so.2.0.0
 	cd $(DESTDIR)/usr/lib && ln -s libcanlock.so.2.0.0 libcanlock.so.2
 	cd $(DESTDIR)/usr/lib && ln -s libcanlock.so.2.0.0 libcanlock.so
-	$(INSTALL) libcanlock.a $(DESTDIR)/usr/lib/libcanlock.a
+	$(INSTALL) -D libcanlock.a $(DESTDIR)/usr/lib/libcanlock.a
 	ranlib $(DESTDIR)/usr/lib/libcanlock.a
 	
 clean:
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@
 
 install: all
 	cd src && make install DESTDIR=$(DESTDIR)
-	install --mode=644 include/canlock.h $(DESTDIR)/usr/include
+	install -D --mode=644 include/canlock.h $(DESTDIR)/usr/include/canlock.h
 	
 test: all
 	@echo "hmactest: "
