Loading .gitignore +1 −1 Original line number Diff line number Diff line /.rust/ /doc/ /build/ /Makefile Makefile→Makefile.in +4 −0 Original line number Diff line number Diff line RUSTC = rustc BUILDDIR = build RUSTFLAGS = -O -Z debug-info INSTALL_DIR = %PREFIX% OPENSSL_LIB = lib.rs OPENSSL = $(BUILDDIR)/$(shell $(RUSTC) --crate-file-name $(OPENSSL_LIB)) Loading Loading @@ -30,6 +31,9 @@ clean: doc: $(OPENSSL) rustdoc $(OPENSSL_LIB) install: $(OPENSSL) install $(OPENSSL) $(INSTALL_DIR) print-target: @echo $(OPENSSL) Loading configure 0 → 100755 +18 −0 Original line number Diff line number Diff line #!/bin/bash TEMP=`getopt -o "" --long prefix: -n "$0" -- "$@"` if [ $? != 0 ]; then exit 1; fi eval set -- "$TEMP" PREFIX=/usr/lib while true ; do case "$1" in --prefix) PREFIX=$2; shift 2;; --) shift; break;; esac done sed -e "s|%PREFIX%|$PREFIX|" < Makefile.in > Makefile Loading
Makefile→Makefile.in +4 −0 Original line number Diff line number Diff line RUSTC = rustc BUILDDIR = build RUSTFLAGS = -O -Z debug-info INSTALL_DIR = %PREFIX% OPENSSL_LIB = lib.rs OPENSSL = $(BUILDDIR)/$(shell $(RUSTC) --crate-file-name $(OPENSSL_LIB)) Loading Loading @@ -30,6 +31,9 @@ clean: doc: $(OPENSSL) rustdoc $(OPENSSL_LIB) install: $(OPENSSL) install $(OPENSSL) $(INSTALL_DIR) print-target: @echo $(OPENSSL) Loading
configure 0 → 100755 +18 −0 Original line number Diff line number Diff line #!/bin/bash TEMP=`getopt -o "" --long prefix: -n "$0" -- "$@"` if [ $? != 0 ]; then exit 1; fi eval set -- "$TEMP" PREFIX=/usr/lib while true ; do case "$1" in --prefix) PREFIX=$2; shift 2;; --) shift; break;; esac done sed -e "s|%PREFIX%|$PREFIX|" < Makefile.in > Makefile