Skip to content

Instantly share code, notes, and snippets.

@syuu1228
Created August 25, 2014 19:06
Show Gist options
  • Save syuu1228/840ca72bd44cab1c1979 to your computer and use it in GitHub Desktop.
Save syuu1228/840ca72bd44cab1c1979 to your computer and use it in GitHub Desktop.
diff --git a/ruby/Makefile b/ruby/Makefile
index b8fd32c..8e7dceb 100644
--- a/ruby/Makefile
+++ b/ruby/Makefile
@@ -57,23 +57,23 @@ ${LIBOBSTACK_A}: upstream/obstack-1.2.tar.bz2
${LIBRUBY}: upstream/ruby
cd upstream/ruby && make
-${EXT_OPENSSL}:
+${EXT_OPENSSL}: ${LIBRUBY} ${OPENSSL}
cd upstream/ruby/ext/openssl && mv Makefile Makefile.orig
cd upstream/ruby/ext/openssl && sed -e "s#-lssl#../../../openssl-${SSL_V
cd upstream/ruby/ext/openssl && make
-${EXT_DIGEST_MD5}:
+${EXT_DIGEST_MD5}: ${LIBRUBY} ${OPENSSL}
cd upstream/ruby/ext/digest/md5 && mv Makefile Makefile.orig
cd upstream/ruby/ext/digest/md5 && sed -e "s#-lssl#../../../../openssl-$
cd upstream/ruby/ext/digest/md5 && make
-${EXT_DIGEST_RMD160}:
+${EXT_DIGEST_RMD160}: ${LIBRUBY} ${OPENSSL}
cd upstream/ruby/ext/digest/rmd160 && mv Makefile Makefile.orig
cd upstream/ruby/ext/digest/rmd160 && sed -e "s#-lssl#../../../../openss
cd upstream/ruby/ext/digest/rmd160 && make
-${EXT_DIGEST_SHA1}:
+${EXT_DIGEST_SHA1}: ${LIBRUBY} ${OPENSSL}
cd upstream/ruby/ext/digest/sha1 && mv Makefile Makefile.orig
cd upstream/ruby/ext/digest/sha1 && sed -e "s#-lssl#../../../../openssl-
cd upstream/ruby/ext/digest/sha1 && make
-${EXT_DIGEST_SHA2}:
+${EXT_DIGEST_SHA2}: ${LIBRUBY} ${OPENSSL}
cd upstream/ruby/ext/digest/sha2 && mv Makefile Makefile.orig
cd upstream/ruby/ext/digest/sha2 && sed -e "s#-lssl#../../../../openssl-
cd upstream/ruby/ext/digest/sha2 && make
(END)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment