Skip to content

Commit

Permalink
openssl: make sed tool configurable
Browse files Browse the repository at this point in the history
Those poor sods on systems where /usr/bin/sed is a BSD sed can now do
`make -C deps/openssl/asm SED=gsed`.
  • Loading branch information
bnoordhuis committed Mar 26, 2013
1 parent 2eb8478 commit 8548920
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deps/openssl/asm/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
SED ?= sed
PERL ?= perl
PERL += -I../openssl/crypto/perlasm -I../openssl/crypto/bn/asm

Expand Down Expand Up @@ -111,7 +112,7 @@ x86-win32-masm/%.asm:
.PHONY: all
all: $(OUTPUTS)
# strip trailing whitespace and final blank newline
sed -sri -e 's/\s+$$/\n/' -e '$$ { /^$$/d }' $^
$(SED) -sri -e 's/\s+$$/\n/' -e '$$ { /^$$/d }' $^

clean:
find . -iname '*.asm' -exec rm "{}" \;
Expand Down

0 comments on commit 8548920

Please sign in to comment.