box-o-sand/vuefun/Makefile

24 lines
345 B
Makefile

BUILD_NAME := $(shell go env GOOS)_$(shell go env GOARCH)
TARGETS := build/$(BUILD_NAME)/vuefun-app
.PHONY: all
all: build test
.PHONY: build
build: $(TARGETS)
.PHONY: test
test:
go test -v
.PHONY: wat
wat:
@echo TARGETS="$(TARGETS)"
.PHONY: clean
clean:
rm -rf build
build/$(BUILD_NAME)/vuefun-app: $(wildcard *.go)
go build -o $@ $<