aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile6
-rw-r--r--xsum.man (renamed from xsum.1)0
3 files changed, 3 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index cd1e936..667ce2c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,7 +3,6 @@
*.o
*.su
*.1
-!/xsum.1
/*sum
/keccak-*sum.c
/sha3-*sum.c
diff --git a/Makefile b/Makefile
index 3e622cf..c32e80c 100644
--- a/Makefile
+++ b/Makefile
@@ -45,9 +45,9 @@ all: $(BIN) $(MAN1)
%.o: %.c $(HDR)
$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
-%.1: xsum.1
+%.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.1 > $@
+ sed -e 's/xsum/$*/g' -e 's/XSUM/'"$$u"'/g' -e 's/Xsum/$($*)/g' < xsum.man > $@
keccak-%sum.c:
printf '%s\n' '#include "common.h"' 'KECCAK_MAIN($*)' > $@
@@ -64,7 +64,7 @@ shake%sum.c:
check:
./test
-install:
+install: $(BIN) $(MAN1)
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1"
mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/sha3sum"
diff --git a/xsum.1 b/xsum.man
index bd7c64f..bd7c64f 100644
--- a/xsum.1
+++ b/xsum.man