diff options
-rw-r--r-- | Makefile | 5 | ||||
-rwxr-xr-x | kike-gen-replies.sh | 2 |
2 files changed, 4 insertions, 3 deletions
@@ -10,7 +10,7 @@ LDFLAGS = `pkg-config --libs libssl` -lpthread .PHONY: all clean .SUFFIXES: -targets = zyklonb kike kike.msg +targets = zyklonb kike all: $(targets) @@ -22,6 +22,7 @@ zyklonb: zyklonb.c common.c siphash.c kike: kike.c common.c siphash.c kike-replies.c $(CC) kike.c siphash.c -o $@ $(CFLAGS) $(LDFLAGS) -kike-replies.c kike.msg: kike-replies +# Generates kike.msg as a by-product +kike-replies.c: kike-replies $(SHELL) kike-gen-replies.sh < $< > $@ diff --git a/kike-gen-replies.sh b/kike-gen-replies.sh index 7318608..004da2b 100755 --- a/kike-gen-replies.sh +++ b/kike-gen-replies.sh @@ -1,7 +1,7 @@ #!/bin/sh LC_ALL=C exec awk ' BEGIN { - # The message catalog is a byproduct + # The message catalog is a by-product msg = "kike.msg" print "$quote \"" > msg; print "$set 1" > msg; |