--- opensc-0.11.13.orig/src/pkcs11/Makefile.am	2010-02-16 10:03:25.000000000 +0100
+++ opensc-0.11.13/src/pkcs11/Makefile.am	2013-10-31 17:40:22.000000000 +0100
@@ -73,6 +73,7 @@ else
 PKCS11_SUFFIX=.so
 endif
 install-exec-hook:	install-pkcs11DATA
+	$(MKDIR_P) "$(DESTDIR)$(pkcs11dir)"
 	for l in opensc-pkcs11$(PKCS11_SUFFIX) onepin-opensc-pkcs11$(PKCS11_SUFFIX) pkcs11-spy$(PKCS11_SUFFIX); do \
 		rm -f "$(DESTDIR)$(pkcs11dir)/$$l"; \
 		$(LN_S) ../$$l "$(DESTDIR)$(pkcs11dir)/$$l"; \
