Skip to content

Commit

Permalink
Hack makefile to make goa build.
Browse files Browse the repository at this point in the history
Building `mdc` requires `github.com/kr/text` which is currently broken
kr/text#6.
  • Loading branch information
raphael committed May 5, 2016
1 parent febb6bb commit ec3334f
Showing 1 changed file with 33 additions and 9 deletions.
42 changes: 33 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,37 @@
# - "all" is the default target, it runs all the targets in the order above.
#
DIRS=$(shell go list -f {{.Dir}} ./...)
# Temporary skip building the docs as godoc2md brings in kr/text which is currently broken
# See https://github.com/kr/text/issues/6
#DEPEND=\
#github.com/asaskevich/govalidator \
#github.com/dgrijalva/jwt-go \
#github.com/dimfeld/httptreemux \
#github.com/go-openapi/loads \
#github.com/goadesign/goa-cellar \
#github.com/goadesign/goa.design/tools/godoc2md \
#github.com/goadesign/goa.design/tools/mdc \
#github.com/golang/lint/golint \
#github.com/manveru/faker \
#github.com/on99/gocyclo \
#github.com/onsi/ginkgo \
#github.com/onsi/ginkgo/ginkgo \
#github.com/onsi/gomega \
#github.com/PuerkitoBio/purell \
#github.com/spf13/hugo \
#github.com/zach-klippenstein/goregen \
#golang.org/x/tools/cmd/cover \
#golang.org/x/tools/cmd/goimports \
#gopkg.in/alecthomas/kingpin.v2 \
#gopkg.in/tylerb/graceful.v1 \
#gopkg.in/yaml.v2

DEPEND=\
github.com/asaskevich/govalidator \
github.com/dgrijalva/jwt-go \
github.com/dimfeld/httptreemux \
github.com/go-openapi/loads \
github.com/goadesign/goa-cellar \
github.com/goadesign/goa.design/tools/godoc2md \
github.com/goadesign/goa.design/tools/mdc \
github.com/golang/lint/golint \
github.com/manveru/faker \
github.com/on99/gocyclo \
Expand All @@ -39,13 +62,14 @@ DEPEND=\
all: depend lint cyclo goagen test

docs:
@git clone https://github.com/goadesign/goa.design
@rm -rf goa.design/content/reference goa.design/public
@mdc github.com/goadesign/goa goa.design/content/reference --exclude goa.design
@cd goa.design && hugo
@rm -rf public
@mv goa.design/public public
@rm -rf goa.design
@echo Skipping build of docs
#@git clone https://github.com/goadesign/goa.design
#@rm -rf goa.design/content/reference goa.design/public
#@mdc github.com/goadesign/goa goa.design/content/reference --exclude goa.design
#@cd goa.design && hugo
#@rm -rf public
#@mv goa.design/public public
#@rm -rf goa.design

depend:
@go get -v $(DEPEND)
Expand Down

0 comments on commit ec3334f

Please sign in to comment.