Makefile updates

This commit is contained in:
anton.gurov
2019-11-05 20:25:46 +03:00
parent 95eccc00e6
commit 88bc36b94c
5 changed files with 11 additions and 395 deletions

View File

@ -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/)