mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
makefile
This commit is contained in:
parent
110a0b173a
commit
2772866e5f
3
build.sh
3
build.sh
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
CGO_ENABLED=1 go build -tags "sqlite_foreign_keys sqlite_fts5"
|
32
makefile
Normal file
32
makefile
Normal file
@ -0,0 +1,32 @@
|
||||
ASSETS = assets/javascripts/* assets/stylesheets/* assets/graphicarts/* assets/index.html
|
||||
|
||||
CGO_ENABLED=1
|
||||
|
||||
default: build
|
||||
|
||||
server/assets_bundle.go: $(ASSETS)
|
||||
go run bundle.go >/dev/null
|
||||
|
||||
bundle: server/assets_bundle.go
|
||||
|
||||
build: build_mac build_nix build_win
|
||||
|
||||
build_mac: bundle
|
||||
set GOOS=darwin
|
||||
set GOARCH=amd64
|
||||
mkdir -p build/mac
|
||||
go build -tags "sqlite_foreign_keys release mac" -ldflags="-s -w" -o build/mac/yarr main.go
|
||||
|
||||
build_nix: bundle
|
||||
set GOOS=linux
|
||||
set GOARCH=386
|
||||
mkdir -p build/nix
|
||||
go build -tags "sqlite_foreign_keys release nix" -ldflags="-s -w" -o build/nix/yarr main.go
|
||||
|
||||
build_win: bundle
|
||||
set GOOS=windows
|
||||
set GOARCH=386
|
||||
mkdir -p build/win
|
||||
go build -tags "sqlite_foreign_keys release win" -ldflags="-s -w -H windowsgui" -o build/win/yarr.exe main.go
|
||||
|
||||
.PHONY: default bundle build build_mac build_nix build_win
|
Loading…
x
Reference in New Issue
Block a user