box-o-sand/vuefun/Makefile

27 lines
416 B
Makefile
Raw Normal View History

2019-03-10 00:55:50 +00:00
BUILD_NAME := $(shell go env GOOS)_$(shell go env GOARCH)
2019-11-06 16:18:20 +00:00
TARGETS := build/$(BUILD_NAME)/vuefun-app dist/index.html
2019-03-10 00:55:50 +00:00
.PHONY: all
2019-03-10 02:11:18 +00:00
all: build test
.PHONY: build
build: $(TARGETS)
.PHONY: test
test:
go test -v
2019-03-10 00:55:50 +00:00
.PHONY: wat
wat:
@echo TARGETS="$(TARGETS)"
.PHONY: clean
clean:
2019-11-06 16:18:20 +00:00
rm -rf dist/ build/
dist/index.html: $(wildcard src/*)
yarn build
2019-03-10 00:55:50 +00:00
build/$(BUILD_NAME)/vuefun-app: $(wildcard *.go)
go build -o $@ $<