You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
box-o-sand/vuefun/Makefile

27 lines
416 B

BUILD_NAME := $(shell go env GOOS)_$(shell go env GOARCH)
TARGETS := build/$(BUILD_NAME)/vuefun-app dist/index.html
.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 dist/ build/
dist/index.html: $(wildcard src/*)
yarn build
build/$(BUILD_NAME)/vuefun-app: $(wildcard *.go)
go build -o $@ $<