Files
monkey/Makefile
Chuck Smith 0b1ed43ae5
Some checks failed
Build / build (push) Successful in 2m1s
Test / build (push) Failing after 11m48s
Demo changes
2024-03-18 20:00:14 -04:00

33 lines
636 B
Makefile

.PHONY: dev build install image 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 .
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