forked from RickDakan/haunts
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (30 loc) · 922 Bytes
/
Copy pathMakefile
File metadata and controls
40 lines (30 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
PREFIX=/usr/local
DESTDIR=
BINDIR=${PREFIX}/bin
DATADIR=${PREFIX}/share
GOFLAGS?=
GOTAGS?=
HAUNTS_SRCS = $(wildcard *.go base/*.go game/*.go game/actions/*.go game/ai/*.go game/hui/*.go game/status/*.go house/*.go mrgnet/*.go sound/*.go texture/*.go )
TOOLS_SRCS = $(wildcard tools/*.go)
all: haunts
# Dependencies
haunts: GEN_version.go $(HAUNTS_SRCS)
@echo Building $@
go build -o $@ $(GOFLAGS)
haunts_release: GEN_version.go $(HAUNTS_SRCS)
@echo Building $@
go build -o $@ -tags 'release !nosound $(GOTAGS)' $(GOFLAGS)
haunts_nosound: GEN_version.go $(HAUNTS_SRCS)
@echo Building $@
go build -o $@ -tags 'nosound !release $(GOTAGS)' $(GOFLAGS)
tools/tools: $(tools_SRCS)
@echo Building $@
cd $(dir $@) && go build $(GOFLAGS)
GEN_version.go: tools/tools
@echo Generating $@
cd tools && ./tools
clean:
rm -fr tools/tools haunts GEN_version.go
# Targets
.PHONY: install clean all
install: $(BINARIES)