Skip to content

Commit

Permalink
add "static" target
Browse files Browse the repository at this point in the history
  • Loading branch information
xiam committed Oct 27, 2019
1 parent 4e0e276 commit 7dc4912
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions webapp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ GIT_SHORTHASH ?= $(shell git rev-parse --short HEAD)

CONTAINER_NAME ?= go-playground

.PHONY: vendor
.PHONY: vendor static

build: clean vendor fmt
go build -o bin/webapp *.go

run:
go run main.go
run: static
go run *.go

static:
$(MAKE) -C static

vendor:
go mod vendor
Expand Down

0 comments on commit 7dc4912

Please sign in to comment.