github.com/pulumi/terraform@v1.4.0/Makefile (about) 1 # generate runs `go generate` to build the dynamically generated 2 # source files, except the protobuf stubs which are built instead with 3 # "make protobuf". 4 generate: 5 go generate ./... 6 7 # We separate the protobuf generation because most development tasks on 8 # Terraform do not involve changing protobuf files and protoc is not a 9 # go-gettable dependency and so getting it installed can be inconvenient. 10 # 11 # If you are working on changes to protobuf interfaces, run this Makefile 12 # target to be sure to regenerate all of the protobuf stubs using the expected 13 # versions of protoc and the protoc Go plugins. 14 protobuf: 15 go run ./tools/protobuf-compile . 16 17 fmtcheck: 18 "$(CURDIR)/scripts/gofmtcheck.sh" 19 20 importscheck: 21 "$(CURDIR)/scripts/goimportscheck.sh" 22 23 staticcheck: 24 "$(CURDIR)/scripts/staticcheck.sh" 25 26 exhaustive: 27 "$(CURDIR)/scripts/exhaustive.sh" 28 29 # Run this if working on the website locally to run in watch mode. 30 website: 31 $(MAKE) -C website website 32 33 # Use this if you have run `website/build-local` to use the locally built image. 34 website/local: 35 $(MAKE) -C website website/local 36 37 # Run this to generate a new local Docker image. 38 website/build-local: 39 $(MAKE) -C website website/build-local 40 41 # disallow any parallelism (-j) for Make. This is necessary since some 42 # commands during the build process create temporary files that collide 43 # under parallel conditions. 44 .NOTPARALLEL: 45 46 .PHONY: fmtcheck importscheck generate protobuf staticcheck website website/local website/build-local