From 4d99690b89bda2814b78f01b88b7833296d47717 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Tue, 27 Sep 2022 23:39:53 +0200 Subject: xS: parse project version from CMakeLists.txt --- xS/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'xS/Makefile') 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: -- cgit v1.2.3-70-g09d2