# This should only be used for dev environments GO := go GOFLAGS := -ldflags '-s -w' PREFIX := /usr/local BINPATH = $(PREFIX)/bin export CGO_ENABLED=1 export CC=gcc .PHONY: clean doc # hehe all: awl awl: . $(GO) build -o awl $(GOFLAGS) . doc: scdoc < doc/awl.1.md > doc/awl.1 test: $(GO) test -race -v ./... -cover fmt: gofmt -w -s . vet: $(GO) vet ./... lint: fmt vet install: awl install awl $(BINPATH) clean: $(GO) clean