mirror of
https://github.com/dagucloud/dagu.git
synced 2026-12-05 05:32:51 +00:00
23 lines
349 B
Makefile
23 lines
349 B
Makefile
.PHONY: test
|
|
test:
|
|
go test ./...
|
|
|
|
.PHONY: test-clean
|
|
test-clean:
|
|
go clean -testcache
|
|
go test ./...
|
|
|
|
bin:
|
|
mkdir .bin
|
|
|
|
VERSION=$(shell date +'%y%m%d%H%M%S')
|
|
LDFLAGS=-X 'main.version=$(VERSION)'
|
|
|
|
.PHONY: build
|
|
build: bin
|
|
go build -ldflags="$(LDFLAGS)" -o ./bin/dagu ./cmd/
|
|
|
|
.PHONY: server
|
|
server: build
|
|
go run -ldflags="$(LDFLAGS)" ./cmd/ server
|