2022-09-26 12:39:26 +02:00
|
|
|
.POSIX:
|
|
|
|
.SUFFIXES:
|
|
|
|
AWK = env LC_ALL=C awk
|
|
|
|
|
2023-07-03 08:53:20 +02:00
|
|
|
outputs = xS xS-replies.go xS.1
|
2022-09-26 12:39:26 +02:00
|
|
|
all: $(outputs)
|
|
|
|
|
2024-09-14 07:32:44 +02:00
|
|
|
xS: xS.go xS-replies.go ../xK-version
|
2023-07-03 08:53:20 +02:00
|
|
|
go build -ldflags "-X 'main.projectVersion=$$(cat ../xK-version)'" -o $@
|
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 > $@
|
2023-07-03 08:53:20 +02:00
|
|
|
xS.1: ../xK-version ../liberty/tools/asciiman.awk xS.adoc
|
|
|
|
env "asciidoc-release-version=$$(cat ../xK-version)" \
|
|
|
|
$(AWK) -f ../liberty/tools/asciiman.awk xS.adoc > $@
|
2024-04-10 13:58:31 +02:00
|
|
|
test: all
|
|
|
|
go test
|
2022-09-26 12:39:26 +02:00
|
|
|
clean:
|
|
|
|
rm -f $(outputs)
|