Skip to content

Commit

Permalink
Fix file generation in Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Guggenmos <tobias.guggenmos@uni-ulm.de>
  • Loading branch information
slrtbtfs committed May 12, 2020
1 parent 87ea686 commit d964104
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ jobs:

steps:
- checkout
- run: go get github.com/rakyll/statik@v0.1.7
- run: make clean
# - run: go get github.com/rakyll/statik@v0.1.7
# - run: make clean
# - run: make generated
# - run: bash -c "[[ `(git diff ; git add -fAn) | wc -l` -eq 0 ]] || ( git --no-pager diff; git add -fAn; echo Please run 'make generated' and commit again ; exit 1 )"
- run: make fmt
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@ BINARYS := $(patsubst cmd/%.go, %, $(MAIN_GO_FILES))
all: build test golangci-lint

generated: $(STATIK_FILES)
gofmt -w $(STATIK_FILES)


.PHONY: install
install: $(STATIK_FILES)
$(GO) get ./cmd/...

.PHONY: build
build: $(STATIK_FILES)
build:
$(GO) build ./cmd/...

.PHONY: clean
clean:
rm -f $(STATIK_FILES)
rm -f $(BINARYS)

%_statik/statik.go: $(wildcard $*/*.md)
%_statik/statik.go: $(wildcard $*/*)
statik -src "$*" -dest $(dir $*) -p $(notdir $*_statik) -f -m
gofmt -w $@

.PHONY: fmt
fmt:
Expand Down
2 changes: 1 addition & 1 deletion langserver/documentation/functions_statik/statik.go

Large diffs are not rendered by default.

0 comments on commit d964104

Please sign in to comment.