summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-08-10 03:46:49 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-08-10 03:46:49 +0200
commitecc4b4206e268cf6fb4c01bceff647096914fa47 (patch)
tree499782cc16504c40cdbca41b494ed25795ccca57
parent9977a07353f5c7f84c14653df85fd18a17b824d1 (diff)
downloadxK-ecc4b4206e268cf6fb4c01bceff647096914fa47.tar.gz
xK-ecc4b4206e268cf6fb4c01bceff647096914fa47.tar.xz
xK-ecc4b4206e268cf6fb4c01bceff647096914fa47.zip
kike: fix the Makefile
-rw-r--r--Makefile5
-rwxr-xr-xkike-gen-replies.sh2
2 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ed73294..34acd79 100644
--- a/Makefile
+++ b/Makefile
@@ -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;