-- mkdir ${prefix}/cyassl; \\r
-- mkdir ${prefix}/cyassl/include; \\r
-- mkdir ${prefix}/cyassl/include/openssl; \\r
-- cp include/openssl/*.h ${prefix}/cyassl/include/openssl; \\r
-- make openssl-links; \\r
-- mkdir ${prefix}/cyassl/lib; \\r
-- cp lib/*.a ${prefix}/cyassl/lib\r
+- $(mkinstalldirs) $(DESTDIR)$(includedir) $(DESTDIR)$(libdir); \\r
+- cp -fpR include/* $(DESTDIR)$(includedir); \\r
+- cp -fpR ctaocrypt/include/* $(DESTDIR)$(includedir); \\r
+- cp -fpR src/libcyassl.la $(DESTDIR)$(libdir); \\r
+- if test -e src/.libs/libcyassl.a; then \\r
+- cp -fp src/.libs/libcyassl.a $(DESTDIR)$(libdir); fi; \\r
+- if test -e src/.libs/libcyassl.so; then \\r
+- cp -fpR src/.libs/libcyassl.so* $(DESTDIR)$(libdir); fi; \\r
+- if test -e src/.libs/libcyassl.dylib; then \\r
+- cp -fpR src/.libs/libcyassl.*dylib $(DESTDIR)$(libdir); fi;\r