diff --git a/Makefile b/Makefile index 3d8e08a..7c1b8f4 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,8 @@ GOPATH_HEAD = $(firstword $(subst :, ,$(GOPATH))) all: ${BUILDDIR}/rtfblog -${BUILDDIR}/rtfblog: $(TARGETS) ${BUILDDIR}/version $(GOFILES) +${BUILDDIR}/rtfblog: $(TARGETS) $(GOFILES) + ./scripts/version.sh > ${BUILDDIR}/version ${GOFMT} ${GOFILES} go build -o ${BUILDDIR} ./cmd/rtfblog/... go test -v ./src/... -covermode=count -coverprofile=coverage.out @@ -63,9 +64,6 @@ vet: fmt: ${GOFMT} ${GOFILES} -${BUILDDIR}/version: - ./scripts/version.sh > $@ - ${CSSDIR}/%.css: static/css/%.css @mkdir -p ${CSSDIR} cp $< $@