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

outputs = irc.go xN xN.1
all: $(outputs)

# If we want to keep module dependencies separate, we don't have many options.
# Symlinking seems to work good enough.
irc.go: ../xS/irc.go
	ln -sf ../xS/irc.go $@

xN: xN.go ../xK-version irc.go
	go build -ldflags "-X 'main.projectVersion=$$(cat ../xK-version)'" -o $@
xN.1: ../xK-version ../liberty/tools/asciiman.awk xN.adoc
	env "asciidoc-release-version=$$(cat ../xK-version)" \
		$(AWK) -f ../liberty/tools/asciiman.awk xN.adoc > $@
test: all
	go test
clean:
	rm -f $(outputs)