summaryrefslogtreecommitdiff
path: root/xS/Makefile
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-27 23:39:53 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-27 23:48:12 +0200
commit4d99690b89bda2814b78f01b88b7833296d47717 (patch)
tree6beac37b188564662c44feee268df73fc196ee5e /xS/Makefile
parent7c74e6615dcf3d1ec288028ee1e49d2556cafffe (diff)
downloadxK-4d99690b89bda2814b78f01b88b7833296d47717.tar.gz
xK-4d99690b89bda2814b78f01b88b7833296d47717.tar.xz
xK-4d99690b89bda2814b78f01b88b7833296d47717.zip
xS: parse project version from CMakeLists.txt
Diffstat (limited to 'xS/Makefile')
-rw-r--r--xS/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/xS/Makefile b/xS/Makefile
index 55ad4d2..f0f662d 100644
--- a/xS/Makefile
+++ b/xS/Makefile
@@ -2,11 +2,15 @@
.SUFFIXES:
AWK = env LC_ALL=C awk
-outputs = xS xS-replies.go
+outputs = xS xS-version.go xS-replies.go
all: $(outputs)
-xS: xS.go xS-replies.go
+xS: xS.go xS-version.go xS-replies.go
go build -o $@
+xS-version.go: ../liberty/tools/cmake-parser.awk \
+ xS-gen-version.awk ../CMakeLists.txt
+ $(AWK) -f ../liberty/tools/cmake-parser.awk \
+ -f xS-gen-version.awk ../CMakeLists.txt > $@
xS-replies.go: xS-gen-replies.awk xS-replies
$(AWK) -f xS-gen-replies.awk xS-replies > $@
clean: