summaryrefslogtreecommitdiff
path: root/xS/Makefile
blob: 770be135f508a6b9d45e57818f5c399c7a541547 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.POSIX:
.SUFFIXES:
AWK = env LC_ALL=C awk

outputs = xS xS-replies.go xS.1
all: $(outputs)

xS: xS.go xS-replies.go ../xK-version
	go build -ldflags "-X 'main.projectVersion=$$(cat ../xK-version)'" -o $@
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 > $@
test: all
	go test
clean:
	rm -f $(outputs)