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.
This commit is contained in:
2014-08-10 00:47:26 +02:00
parent bd68e28b60
commit 126c07b70a
6 changed files with 110 additions and 182 deletions

View File

@@ -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 < $< > $@