xK/xS/Makefile

17 lines
489 B
Makefile
Raw Normal View History

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