Made the makefiles more flexible
This commit is contained in:
+8
-7
@@ -1,25 +1,26 @@
|
||||
GOBIN ?= go
|
||||
LDFLAGS = -s -w
|
||||
LDFLAGS_WIN = -H windowsgui -s -w
|
||||
GOFLAGS = -trimpath
|
||||
GOMODTIDY ?= $(GOBIN) mod tidy
|
||||
LDFLAGS ?= -s -w
|
||||
LDFLAGS_WIN ?= -H windowsgui -s -w
|
||||
GOFLAGS ?= -trimpath
|
||||
SOURCES = server.go twitch.go youtube.go owncast.go kick.go
|
||||
SOURCES_GUI = $(SOURCES) gui.go
|
||||
BIN = streamgoose
|
||||
|
||||
unix:
|
||||
$(GOBIN) mod tidy
|
||||
$(GOMODTIDY)
|
||||
$(GOBIN) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $(BIN) $(SOURCES_GUI)
|
||||
|
||||
unix-headless:
|
||||
$(GOBIN) mod tidy
|
||||
$(GOMODTIDY)
|
||||
$(GOBIN) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $(BIN) $(SOURCES)
|
||||
|
||||
win64:
|
||||
$(GOBIN) mod tidy
|
||||
$(GOMODTIDY)
|
||||
GOOS=windows GOARCH=amd64 $(GOBIN) build $(GOFLAGS) -ldflags "$(LDFLAGS_WIN)" -o $(BIN).exe $(SOURCES_GUI)
|
||||
|
||||
win64-headless:
|
||||
$(GOBIN) mod tidy
|
||||
$(GOMODTIDY)
|
||||
GOOS=windows GOARCH=amd64 $(GOBIN) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $(BIN).exe $(SOURCES)
|
||||
|
||||
clean:
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// build +gui
|
||||
/*
|
||||
StreamGoose UI — Go reference implementation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user