kike: fix the Makefile

This commit is contained in:
Přemysl Eric Janouch 2014-08-10 03:46:49 +02:00
parent 9977a07353
commit ecc4b4206e
2 changed files with 4 additions and 3 deletions

View File

@ -10,7 +10,7 @@ LDFLAGS = `pkg-config --libs libssl` -lpthread
.PHONY: all clean .PHONY: all clean
.SUFFIXES: .SUFFIXES:
targets = zyklonb kike kike.msg targets = zyklonb kike
all: $(targets) all: $(targets)
@ -22,6 +22,7 @@ zyklonb: zyklonb.c common.c siphash.c
kike: kike.c common.c siphash.c kike-replies.c kike: kike.c common.c siphash.c kike-replies.c
$(CC) kike.c siphash.c -o $@ $(CFLAGS) $(LDFLAGS) $(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 < $< > $@ $(SHELL) kike-gen-replies.sh < $< > $@

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
LC_ALL=C exec awk ' LC_ALL=C exec awk '
BEGIN { BEGIN {
# The message catalog is a byproduct # The message catalog is a by-product
msg = "kike.msg" msg = "kike.msg"
print "$quote \"" > msg; print "$quote \"" > msg;
print "$set 1" > msg; print "$set 1" > msg;