Skip to content

Commit

Permalink
Remove mentions of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Glib Smaga committed May 22, 2017
1 parent 3ed13f6 commit d849fbd
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ endif
# all .go files that don't exist in hidden directories
ALL_SRC := $(shell find . -name "*.go" | grep -v -e vendor \
-e ".*/\..*" \
-e "examples/.*" \
-e ".*/_.*")

TEST_TIMEOUT := "-timeout=10s"
Expand All @@ -39,7 +38,7 @@ TEST_TIMEOUT := "-timeout=10s"
test: $(COV_REPORT)

TEST_IGNORES = vendor .git
COVER_IGNORES = $(TEST_IGNORES) examples testutils
COVER_IGNORES = $(TEST_IGNORES) testutils

comma := ,
null :=
Expand Down Expand Up @@ -157,7 +156,7 @@ dockersave:
docker save $(shell docker history -q $(DOCKER_IMAGE) | grep -v '<missing>') | gzip > $(DOCKER_CACHE_FILE)

.PHONY: ci
ci: lint examples $(CI_TEST_CMD)
ci: lint $(CI_TEST_CMD)

.PHONY: gendoc
gendoc:
Expand All @@ -166,29 +165,19 @@ gendoc:
-not -path "./node_modules/*" | \
xargs -I% md-to-godoc -input=%

.PHONY: genexamples
genexamples:
@$(call label,Building examples)
@echo
$(ECHO_V)$(MAKE) -C examples/keyvalue ECHO_V=$(ECHO_V)

.PHONY: license
license:
$(ECHO_V)./.build/license.sh

.PHONY: generate
generate: gendoc genexamples license
generate: gendoc license

.PHONY: clean
clean:
$(ECHO_V)rm -f $(COV_REPORT) $(COV_HTML) $(LINT_LOG) $(COV_TXT)
$(ECHO_V)find $(subst /...,,$(PKGS)) -name $(COVER_OUT) -delete
$(ECHO_V)rm -rf .bin

.PHONY: examples
examples:
$(ECHO_V)go test ./examples/simple

.PHONY: vendor
vendor:
$(ECHO_V)test -d vendor || $(MAKE) libdeps

0 comments on commit d849fbd

Please sign in to comment.