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.
18 lines
281 B
18 lines
281 B
6 years ago
|
BUILD_NAME := $(shell go env GOOS)_$(shell go env GOARCH)
|
||
|
TARGETS := build/$(BUILD_NAME)/vuefun-app
|
||
|
|
||
|
|
||
|
.PHONY: all
|
||
|
all: $(TARGETS)
|
||
|
|
||
|
.PHONY: wat
|
||
|
wat:
|
||
|
@echo TARGETS="$(TARGETS)"
|
||
|
|
||
|
.PHONY: clean
|
||
|
clean:
|
||
|
rm -rf build
|
||
|
|
||
|
build/$(BUILD_NAME)/vuefun-app: $(wildcard *.go)
|
||
|
go build -o $@ $<
|