Switching to wsl
This commit is contained in:
20
Makefile
20
Makefile
@@ -7,14 +7,14 @@ VERSION ?= $(shell git describe 2>/dev/null || echo "")
|
||||
DESTDIR ?= $(GOBIN)
|
||||
|
||||
ifeq ($(LOCAL), 1)
|
||||
IMAGE := r.mills.io/prologic/monkey
|
||||
IMAGE := r.unflavoredmeson.com/UnflavoredMeson/monkey
|
||||
TAG := dev
|
||||
else
|
||||
ifeq ($(BRANCH), master)
|
||||
IMAGE := prologic/monkey
|
||||
IMAGE := UnflavoredMeson/monkey
|
||||
TAG := latest
|
||||
else
|
||||
IMAGE := prologic/monkey
|
||||
IMAGE := UnflavoredMeson/monkey
|
||||
TAG := dev
|
||||
endif
|
||||
endif
|
||||
@@ -33,14 +33,14 @@ build: clean cli server ## Build monkey
|
||||
cli: ## Build monkey CLI
|
||||
@go build \
|
||||
-tags "netgo static_build" -installsuffix netgo \
|
||||
-ldflags "-w -X go.mills.io/monkey/v2.MonkeyVersion=$(VERSION)" \
|
||||
-ldflags "-w -X go.unflavoredmeson.com/monkey/v2.MonkeyVersion=$(VERSION)" \
|
||||
./cmd/monkey/...
|
||||
|
||||
server: ## Build Monkey server
|
||||
@go build \
|
||||
-tags "netgo static_build" -installsuffix netgo \
|
||||
-ldflags "-w -X go.mills.io/monkey/v2.MonkeyVersion=$(VERSION)" \
|
||||
./cmd/monkey-server/...
|
||||
-ldflags "-w -X go.unflavoredmeson.com/monkey/v2.MonkeyVersion=$(VERSION)" \
|
||||
./cmd/monkey/...
|
||||
|
||||
install: cli server ## Install monkey to $DESTDIR
|
||||
@install -D -m 755 monkey $(DESTDIR)/monkey
|
||||
@@ -66,16 +66,14 @@ profile: ## Run tests with profiling enabled
|
||||
@go test -cpuprofile cpu.prof -memprofile mem.prof -v -bench ./...
|
||||
|
||||
compare: ## Run benchmarks comparing Monkey with other languages
|
||||
@hyperfine -w 5 -p 'make build; gcc -o examples/fib examples/fib.c' \
|
||||
-n c -n go -n tengo -n python -n tauc -n taugo -n monkey \
|
||||
@hyperfine -w 3 -p 'make build; gcc -o examples/fib examples/fib.c' \
|
||||
-n c -n go -n tengo -n python -n monkey \
|
||||
--sort mean-time --export-markdown Benchmark.md \
|
||||
'./examples/fib' \
|
||||
'go run examples/fib.go' \
|
||||
'tengo examples/fib.tengo' \
|
||||
'python3 examples/fib.py' \
|
||||
'tauc examples/fib.tau' \
|
||||
'taugo examples/fib.tau' \
|
||||
'./monkey examples/fib.m'
|
||||
'./monkey examples/fib.monkey'
|
||||
|
||||
bench: # Run test benchmarks
|
||||
@go test -v -benchmem -bench=. ./...
|
||||
|
||||
Reference in New Issue
Block a user