Files
monkey/Makefile
Chuck Smith 387bb80094
Some checks failed
Build / build (push) Successful in 10m0s
Test / build (push) Failing after 15m32s
fix releaser tools
2024-03-24 12:23:19 -04:00

36 lines
675 B
Makefile

.PHONY: dev build install image release profile bench test clean
CGO_ENABLED=0
COMMIT=$(shell git rev-parse --short HEAD)
all: dev
dev: build
@./monkey-lang -d
build: clean
@go build \
-tags "netgo static_build" -installsuffix netgo \
-ldflags "-w -X $(shell go list)/version/.GitCommit=$(COMMIT)" \
.
install: build
@go install
image:
@docker build -t prologic/monkey-lang .
release:
@./tools/release.sh
profile:
@go test -cpuprofile cpu.prof -memprofile mem.prof -v -bench ./...
bench:
@go test -v -benchmem -bench=. ./...
test:
@go test -v -cover -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... -race ./...
clean:
@git clean -f -d -X