diff options
author | Mattias Andrée <maandree@kth.se> | 2017-10-15 15:30:55 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-10-15 15:30:55 +0200 |
commit | b73bcec311b10f7f622058b8b0c2bef428790686 (patch) | |
tree | 9d80e54b4dae8556f88f52c19cb241d835fcbc42 | |
parent | Add test (diff) | |
download | sha3sum-b73bcec311b10f7f622058b8b0c2bef428790686.tar.gz sha3sum-b73bcec311b10f7f622058b8b0c2bef428790686.tar.bz2 sha3sum-b73bcec311b10f7f622058b8b0c2bef428790686.tar.xz |
Fix dependencies in makefile1.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | xsum.man (renamed from xsum.1) | 0 |
3 files changed, 3 insertions, 4 deletions
@@ -3,7 +3,6 @@ *.o *.su *.1 -!/xsum.1 /*sum /keccak-*sum.c /sha3-*sum.c @@ -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" |