From ecc4b4206e268cf6fb4c01bceff647096914fa47 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sun, 10 Aug 2014 03:46:49 +0200 Subject: kike: fix the Makefile --- Makefile | 5 +++-- kike-gen-replies.sh | 2 +- 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; -- cgit v1.2.3-70-g09d2