summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-08-10 00:47:26 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-08-10 00:47:26 +0200
commit126c07b70a7f3217845ffbdf2a001af355755d7c (patch)
tree18dd0b8caa0b2b7a46dcd2d1044a5b0f5393d065 /Makefile
parentbd68e28b608fb74bb4823726b9f0bf6489ad94b5 (diff)
downloadxK-126c07b70a7f3217845ffbdf2a001af355755d7c.tar.gz
xK-126c07b70a7f3217845ffbdf2a001af355755d7c.tar.xz
xK-126c07b70a7f3217845ffbdf2a001af355755d7c.zip
kike: generate replies from a single text file
It became a bit difficult to maintain two separate lists. Besides, the inverse generation of a message catalog from source code was a bit strange.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 55b236a..ed73294 100644
--- a/Makefile
+++ b/Makefile
@@ -8,19 +8,20 @@ CFLAGS = -std=c99 -Wall -Wextra -Wno-unused-function \
LDFLAGS = `pkg-config --libs libssl` -lpthread
.PHONY: all clean
+.SUFFIXES:
targets = zyklonb kike kike.msg
all: $(targets)
clean:
- rm -f $(targets)
+ rm -f $(targets) kike-replies.c
-zyklonb: src/zyklonb.c src/common.c src/siphash.c
- $(CC) src/zyklonb.c src/siphash.c -o $@ $(CFLAGS) $(LDFLAGS)
+zyklonb: zyklonb.c common.c siphash.c
+ $(CC) zyklonb.c siphash.c -o $@ $(CFLAGS) $(LDFLAGS)
+kike: kike.c common.c siphash.c kike-replies.c
+ $(CC) kike.c siphash.c -o $@ $(CFLAGS) $(LDFLAGS)
-kike: src/kike.c src/common.c src/siphash.c
- $(CC) src/kike.c src/siphash.c -o $@ $(CFLAGS) $(LDFLAGS)
-kike.msg: src/kike.c
- $(SHELL) kike-extract-messages.sh < $< > $@
+kike-replies.c kike.msg: kike-replies
+ $(SHELL) kike-gen-replies.sh < $< > $@