aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9c4e507..731cd31 100644
--- a/Makefile
+++ b/Makefile
@@ -57,11 +57,10 @@ sha3sum-mcb.c: commands.h
%.1: xsum.man
u=$$(printf '%s\n' $* | tr a-z A-Z); \
- sed -e 's/xsum/$*/g' -e 's/XSUM/'"$$u"'/g' -e 's/Xsum/$($*)/g' < xsum.man > $@
if test $* = sha3sum; then \
- sed -i 's/^\\# ONLY SHA3: //' $@; \
+ sed -e 's/xsum/$*/g' -e 's/XSUM/'"$$u"'/g' -e 's/Xsum/$($*)/g' -e 's/^\\# ONLY SHA3: //' < xsum.man > $@; \
else \
- sed -i '/^\\# ONLY SHA3: /d' $@; \
+ sed -e 's/xsum/$*/g' -e 's/XSUM/'"$$u"'/g' -e 's/Xsum/$($*)/g' -e '/^\\# ONLY SHA3: /d' < xsum.man > $@; \
fi
commands.h: Makefile