Makefile updates
This commit is contained in:
10
Makefile
10
Makefile
@ -18,11 +18,19 @@ build: build.game
|
||||
build.deps:
|
||||
GIT_SSL_NO_VERIFY=true $(GO) mod vendor
|
||||
|
||||
build.game:
|
||||
build.game.linux64:
|
||||
DISTFOLDER=$(DISTFOLDER)/linux64
|
||||
cp $(CWD)/vendor/lab.zaar.be/thefish/bearlibterminal/libBearLibTerminal.so $(DISTFOLDER)
|
||||
cp $(CWD)/config.json $(DISTFOLDER)
|
||||
cp -r $(CWD)/resources $(DISTFOLDER)
|
||||
$(GO) build -ldflags $(LDFLAGS) -o $(DISTFOLDER)/game $(CWD)/cmd/game/main.go
|
||||
|
||||
build.game.win64:
|
||||
DISTFOLDER=$(DISTFOLDER)/windows-amd64
|
||||
cp $(CWD)/vendor/lab.zaar.be/thefish/bearlibterminal/libBearLibTerminal.so $(DISTFOLDER)
|
||||
cp $(CWD)/config.json $(DISTFOLDER)
|
||||
cp -r $(CWD)/resources $(DISTFOLDER)
|
||||
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ $(GO) build -o $(DISTFOLDER)/game.exe
|
||||
|
||||
test:
|
||||
$(GO) test -v $(go list ./... | grep -v /vendor/)
|
||||
|
Reference in New Issue
Block a user