2022-09-26 12:39:26 +02:00
|
|
|
.POSIX:
|
|
|
|
.SUFFIXES:
|
|
|
|
AWK = env LC_ALL=C awk
|
|
|
|
|
2022-09-27 23:39:53 +02:00
|
|
|
outputs = xS xS-version.go xS-replies.go
|
2022-09-26 12:39:26 +02:00
|
|
|
all: $(outputs)
|
|
|
|
|
2022-09-27 23:39:53 +02:00
|
|
|
xS: xS.go xS-version.go xS-replies.go
|
2022-09-26 12:39:26 +02:00
|
|
|
go build -o $@
|
2022-09-27 23:39:53 +02:00
|
|
|
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 > $@
|
2022-09-26 12:39:26 +02:00
|
|
|
xS-replies.go: xS-gen-replies.awk xS-replies
|
|
|
|
$(AWK) -f xS-gen-replies.awk xS-replies > $@
|
|
|
|
clean:
|
|
|
|
rm -f $(outputs)
|