--- ./Makefile.orig 2014-02-19 10:24:15.411792348 +0100 +++ ./Makefile 2014-02-19 10:25:09.252791282 +0100 @@ -18,18 +18,18 @@ rm -f *.so install: - mkdir $(PREFIX)/include/fortuna - $(INSTALL) -m 644 ./src/fortuna.h $(PREFIX)/include/fortuna/ - $(INSTALL) -m 644 ./src/px.h $(PREFIX)/include/fortuna/ - $(INSTALL) -m 644 ./src/rijndael.h $(PREFIX)/include/fortuna/ - $(INSTALL) -m 644 ./src/sha2.h $(PREFIX)/include/fortuna/ - $(INSTALL) -m 644 ./src/c.h $(PREFIX)/include/fortuna/ - $(INSTALL) -m 644 ./src/blf.h $(PREFIX)/include/fortuna/ - $(INSTALL) -m 644 ./src/sha1.h $(PREFIX)/include/fortuna/ - $(INSTALL) -m 644 ./src/internal.h $(PREFIX)/include/fortuna/ - $(INSTALL) -m 644 ./src/md5.h $(PREFIX)/include/fortuna/ - $(INSTALL) -m 644 ./libfortuna.a $(PREFIX)/lib/ - $(INSTALL) -m 644 ./libfortuna.so $(PREFIX)/lib/ + mkdir $(DESTDIR)$(PREFIX)/include/fortuna + $(INSTALL) -m 644 ./src/fortuna.h $(DESTDIR)$(PREFIX)/include/fortuna/ + $(INSTALL) -m 644 ./src/px.h $(DESTDIR)$(PREFIX)/include/fortuna/ + $(INSTALL) -m 644 ./src/rijndael.h $(DESTDIR)$(PREFIX)/include/fortuna/ + $(INSTALL) -m 644 ./src/sha2.h $(DESTDIR)$(PREFIX)/include/fortuna/ + $(INSTALL) -m 644 ./src/c.h $(DESTDIR)$(PREFIX)/include/fortuna/ + $(INSTALL) -m 644 ./src/blf.h $(DESTDIR)$(PREFIX)/include/fortuna/ + $(INSTALL) -m 644 ./src/sha1.h $(DESTDIR)$(PREFIX)/include/fortuna/ + $(INSTALL) -m 644 ./src/internal.h $(DESTDIR)$(PREFIX)/include/fortuna/ + $(INSTALL) -m 644 ./src/md5.h $(DESTDIR)$(PREFIX)/include/fortuna/ + $(INSTALL) -m 644 ./libfortuna.a $(DESTDIR)$(PREFIX)/lib/ + $(INSTALL) -m 644 ./libfortuna.so $(DESTDIR)$(PREFIX)/lib/ deinstall: rm -Rf $(PREFIX)/include/fortuna