-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EXAMPLE: makefile instead of taskfile
Do not merge. This is an example for @thinkofher.
- Loading branch information
Showing
5 changed files
with
45 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
SERVER := long-season | ||
CLI := long-season-cli | ||
EMBEDFILES := $(CURDIR)/embedfiles | ||
STATIC := pkg/static/files.gen.go | ||
|
||
default: build | ||
|
||
$(SERVER): $(STATIC) $(wildcard cmd/server/** pkg/**) | ||
go build -o $@ cmd/server/main.go | ||
|
||
$(CLI): $(SERVER) $(wildcard cmd/cli/** pkg/**) | ||
go build -o $@ cmd/cli/main.go | ||
|
||
$(EMBEDFILES): | ||
GO111MODULE=off go get 4d63.com/embedfiles | ||
GO111MODULE=off go build -o $@ 4d63.com/embedfiles | ||
|
||
$(STATIC): $(EMBEDFILES) $(wildcard web/**) | ||
$(EMBEDFILES) -out=$@ -pkg=static web | ||
|
||
.PHONY: default build run clean lint test | ||
|
||
build: $(SERVER) $(CLI) | ||
|
||
run: $(SERVER) | ||
$(SERVER) | ||
|
||
clean: | ||
rm -f $(SERVER) $(CLI) $(EMBEDFILES) $(STATIC) | ||
|
||
lint: | ||
golint ./... | ||
|
||
test: $(STATIC) | ||
go test ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.