2017-05-18 20:38:28 +02:00
|
|
|
PROJECT=github.com/pulumi/lumi
|
Makeify more; add a "full build" target (#193)
* Makeify more; add a "full build" target
This change uses make for more of our tree. Namely, the AWS provider
and LumiJS compilers each now use make to build and/or install them.
Not only does this bring about some consistency to how we build and
test things, but also made it easy to add a full build target:
$ make all
This target will build, test, and install the core Go tools, the LumiJS
compiler, and the AWS provider, in that order.
Each can be made in isolation, however, which ensures that the inner
loop for those is fast and so that, when it comes to finishing
pulumi/lumi#147, we can easily split them out and make from the top.
2017-06-02 23:26:34 +02:00
|
|
|
PROJECT_PKGS=$(shell go list ./cmd/... ./pkg/... | grep -v /vendor/)
|
2016-11-15 20:30:34 +01:00
|
|
|
|
Makeify more; add a "full build" target (#193)
* Makeify more; add a "full build" target
This change uses make for more of our tree. Namely, the AWS provider
and LumiJS compilers each now use make to build and/or install them.
Not only does this bring about some consistency to how we build and
test things, but also made it easy to add a full build target:
$ make all
This target will build, test, and install the core Go tools, the LumiJS
compiler, and the AWS provider, in that order.
Each can be made in isolation, however, which ensures that the inner
loop for those is fast and so that, when it comes to finishing
pulumi/lumi#147, we can easily split them out and make from the top.
2017-06-02 23:26:34 +02:00
|
|
|
.PHONY: default
|
|
|
|
default: banner lint_quiet vet test install
|
|
|
|
|
|
|
|
.PHONY: all
|
2017-06-02 23:50:35 +02:00
|
|
|
all: banner_all lint_quiet vet test install lumijs lumipkg lumijspkg awspkg
|
2017-05-24 20:58:58 +02:00
|
|
|
|
Makeify more; add a "full build" target (#193)
* Makeify more; add a "full build" target
This change uses make for more of our tree. Namely, the AWS provider
and LumiJS compilers each now use make to build and/or install them.
Not only does this bring about some consistency to how we build and
test things, but also made it easy to add a full build target:
$ make all
This target will build, test, and install the core Go tools, the LumiJS
compiler, and the AWS provider, in that order.
Each can be made in isolation, however, which ensures that the inner
loop for those is fast and so that, when it comes to finishing
pulumi/lumi#147, we can easily split them out and make from the top.
2017-06-02 23:26:34 +02:00
|
|
|
.PHONY: banner
|
2017-05-24 20:58:58 +02:00
|
|
|
banner:
|
Makeify more; add a "full build" target (#193)
* Makeify more; add a "full build" target
This change uses make for more of our tree. Namely, the AWS provider
and LumiJS compilers each now use make to build and/or install them.
Not only does this bring about some consistency to how we build and
test things, but also made it easy to add a full build target:
$ make all
This target will build, test, and install the core Go tools, the LumiJS
compiler, and the AWS provider, in that order.
Each can be made in isolation, however, which ensures that the inner
loop for those is fast and so that, when it comes to finishing
pulumi/lumi#147, we can easily split them out and make from the top.
2017-06-02 23:26:34 +02:00
|
|
|
@echo "\033[1;37m============\033[0m"
|
|
|
|
@echo "\033[1;37mLumi (Quick)\033[0m"
|
|
|
|
@echo "\033[1;37m============\033[0m"
|
|
|
|
@echo "\033[0;33mRunning quick build; to run full tests, run 'make all'\033[0m"
|
2017-06-02 19:30:57 +02:00
|
|
|
@echo "\033[0;33mRemember to do this before checkin, otherwise your CI will fail\033[0m"
|
|
|
|
|
Makeify more; add a "full build" target (#193)
* Makeify more; add a "full build" target
This change uses make for more of our tree. Namely, the AWS provider
and LumiJS compilers each now use make to build and/or install them.
Not only does this bring about some consistency to how we build and
test things, but also made it easy to add a full build target:
$ make all
This target will build, test, and install the core Go tools, the LumiJS
compiler, and the AWS provider, in that order.
Each can be made in isolation, however, which ensures that the inner
loop for those is fast and so that, when it comes to finishing
pulumi/lumi#147, we can easily split them out and make from the top.
2017-06-02 23:26:34 +02:00
|
|
|
.PHONY: banner_all
|
|
|
|
banner_all:
|
|
|
|
@echo "\033[1;37m============\033[0m"
|
|
|
|
@echo "\033[1;37mLumi (Full)\033[0m"
|
|
|
|
@echo "\033[1;37m============\033[0m"
|
2017-01-28 00:42:55 +01:00
|
|
|
|
Makeify more; add a "full build" target (#193)
* Makeify more; add a "full build" target
This change uses make for more of our tree. Namely, the AWS provider
and LumiJS compilers each now use make to build and/or install them.
Not only does this bring about some consistency to how we build and
test things, but also made it easy to add a full build target:
$ make all
This target will build, test, and install the core Go tools, the LumiJS
compiler, and the AWS provider, in that order.
Each can be made in isolation, however, which ensures that the inner
loop for those is fast and so that, when it comes to finishing
pulumi/lumi#147, we can easily split them out and make from the top.
2017-06-02 23:26:34 +02:00
|
|
|
.PHONY: build
|
2017-01-28 00:42:55 +01:00
|
|
|
build:
|
|
|
|
@echo "\033[0;32mBUILD:\033[0m"
|
Makeify more; add a "full build" target (#193)
* Makeify more; add a "full build" target
This change uses make for more of our tree. Namely, the AWS provider
and LumiJS compilers each now use make to build and/or install them.
Not only does this bring about some consistency to how we build and
test things, but also made it easy to add a full build target:
$ make all
This target will build, test, and install the core Go tools, the LumiJS
compiler, and the AWS provider, in that order.
Each can be made in isolation, however, which ensures that the inner
loop for those is fast and so that, when it comes to finishing
pulumi/lumi#147, we can easily split them out and make from the top.
2017-06-02 23:26:34 +02:00
|
|
|
@go version
|
2017-05-18 20:38:28 +02:00
|
|
|
@go build ${PROJECT}/cmd/lumi
|
2017-05-19 01:12:53 +02:00
|
|
|
@go build ${PROJECT}/cmd/lumidl
|
2017-01-28 00:42:55 +01:00
|
|
|
|
Makeify more; add a "full build" target (#193)
* Makeify more; add a "full build" target
This change uses make for more of our tree. Namely, the AWS provider
and LumiJS compilers each now use make to build and/or install them.
Not only does this bring about some consistency to how we build and
test things, but also made it easy to add a full build target:
$ make all
This target will build, test, and install the core Go tools, the LumiJS
compiler, and the AWS provider, in that order.
Each can be made in isolation, however, which ensures that the inner
loop for those is fast and so that, when it comes to finishing
pulumi/lumi#147, we can easily split them out and make from the top.
2017-06-02 23:26:34 +02:00
|
|
|
.PHONY: install
|
2017-01-28 00:42:55 +01:00
|
|
|
install:
|
|
|
|
@echo "\033[0;32mINSTALL:\033[0m"
|
2017-05-18 20:38:28 +02:00
|
|
|
@go install ${PROJECT}/cmd/lumi
|
2017-05-18 21:38:58 +02:00
|
|
|
@go install ${PROJECT}/cmd/lumidl
|
2017-01-28 00:42:55 +01:00
|
|
|
|
Makeify more; add a "full build" target (#193)
* Makeify more; add a "full build" target
This change uses make for more of our tree. Namely, the AWS provider
and LumiJS compilers each now use make to build and/or install them.
Not only does this bring about some consistency to how we build and
test things, but also made it easy to add a full build target:
$ make all
This target will build, test, and install the core Go tools, the LumiJS
compiler, and the AWS provider, in that order.
Each can be made in isolation, however, which ensures that the inner
loop for those is fast and so that, when it comes to finishing
pulumi/lumi#147, we can easily split them out and make from the top.
2017-06-02 23:26:34 +02:00
|
|
|
.PHONY: lint
|
2017-01-28 00:42:55 +01:00
|
|
|
lint:
|
|
|
|
@echo "\033[0;32mLINT:\033[0m"
|
2017-06-02 18:05:28 +02:00
|
|
|
@golint -set_exit_status cmd/...
|
|
|
|
@golint -set_exit_status pkg/...
|
2017-01-28 00:42:55 +01:00
|
|
|
|
Makeify more; add a "full build" target (#193)
* Makeify more; add a "full build" target
This change uses make for more of our tree. Namely, the AWS provider
and LumiJS compilers each now use make to build and/or install them.
Not only does this bring about some consistency to how we build and
test things, but also made it easy to add a full build target:
$ make all
This target will build, test, and install the core Go tools, the LumiJS
compiler, and the AWS provider, in that order.
Each can be made in isolation, however, which ensures that the inner
loop for those is fast and so that, when it comes to finishing
pulumi/lumi#147, we can easily split them out and make from the top.
2017-06-02 23:26:34 +02:00
|
|
|
.PHONY: lint_quiet
|
2017-04-12 20:01:16 +02:00
|
|
|
lint_quiet:
|
|
|
|
@echo "\033[0;32mLINT (quiet):\033[0m"
|
2017-05-14 01:51:26 +02:00
|
|
|
@echo "`golint cmd/... | grep -v "or be unexported"`"
|
|
|
|
@echo "`golint pkg/... | grep -v "or be unexported"`"
|
Makeify more; add a "full build" target (#193)
* Makeify more; add a "full build" target
This change uses make for more of our tree. Namely, the AWS provider
and LumiJS compilers each now use make to build and/or install them.
Not only does this bring about some consistency to how we build and
test things, but also made it easy to add a full build target:
$ make all
This target will build, test, and install the core Go tools, the LumiJS
compiler, and the AWS provider, in that order.
Each can be made in isolation, however, which ensures that the inner
loop for those is fast and so that, when it comes to finishing
pulumi/lumi#147, we can easily split them out and make from the top.
2017-06-02 23:26:34 +02:00
|
|
|
@test -z "$$(golint cmd/... | grep -v 'or be unexported')"
|
|
|
|
@test -z "$$(golint pkg/... | grep -v 'or be unexported')"
|
2017-04-12 20:01:16 +02:00
|
|
|
@echo "\033[0;33mgolint was run quietly; to run with noisy errors, run 'make lint'\033[0m"
|
2017-01-28 00:42:55 +01:00
|
|
|
|
Makeify more; add a "full build" target (#193)
* Makeify more; add a "full build" target
This change uses make for more of our tree. Namely, the AWS provider
and LumiJS compilers each now use make to build and/or install them.
Not only does this bring about some consistency to how we build and
test things, but also made it easy to add a full build target:
$ make all
This target will build, test, and install the core Go tools, the LumiJS
compiler, and the AWS provider, in that order.
Each can be made in isolation, however, which ensures that the inner
loop for those is fast and so that, when it comes to finishing
pulumi/lumi#147, we can easily split them out and make from the top.
2017-06-02 23:26:34 +02:00
|
|
|
.PHONY: vet
|
|
|
|
vet:
|
|
|
|
@echo "\033[0;32mVET:\033[0m"
|
|
|
|
@go tool vet -printf=false cmd/ pkg/
|
|
|
|
|
|
|
|
.PHONY: test
|
2017-01-28 00:42:55 +01:00
|
|
|
test:
|
|
|
|
@echo "\033[0;32mTEST:\033[0m"
|
2017-06-03 20:08:09 +02:00
|
|
|
@go test -cover ${PROJECT_PKGS}
|
2017-06-01 23:01:26 +02:00
|
|
|
|
Makeify more; add a "full build" target (#193)
* Makeify more; add a "full build" target
This change uses make for more of our tree. Namely, the AWS provider
and LumiJS compilers each now use make to build and/or install them.
Not only does this bring about some consistency to how we build and
test things, but also made it easy to add a full build target:
$ make all
This target will build, test, and install the core Go tools, the LumiJS
compiler, and the AWS provider, in that order.
Each can be made in isolation, however, which ensures that the inner
loop for those is fast and so that, when it comes to finishing
pulumi/lumi#147, we can easily split them out and make from the top.
2017-06-02 23:26:34 +02:00
|
|
|
.PHONY: lumijs
|
|
|
|
lumijs:
|
|
|
|
@cd ./cmd/lumijs && $(MAKE)
|
2017-01-28 00:42:55 +01:00
|
|
|
|
2017-06-02 23:50:35 +02:00
|
|
|
.PHONY: lumipkg
|
|
|
|
lumipkg:
|
|
|
|
@cd ./lib/lumi && $(MAKE)
|
|
|
|
|
|
|
|
.PHONY: lumijspkg
|
|
|
|
lumijspkg:
|
|
|
|
@cd ./lib/lumijs && $(MAKE)
|
|
|
|
|
|
|
|
.PHONY: awspkg
|
|
|
|
awspkg:
|
Makeify more; add a "full build" target (#193)
* Makeify more; add a "full build" target
This change uses make for more of our tree. Namely, the AWS provider
and LumiJS compilers each now use make to build and/or install them.
Not only does this bring about some consistency to how we build and
test things, but also made it easy to add a full build target:
$ make all
This target will build, test, and install the core Go tools, the LumiJS
compiler, and the AWS provider, in that order.
Each can be made in isolation, however, which ensures that the inner
loop for those is fast and so that, when it comes to finishing
pulumi/lumi#147, we can easily split them out and make from the top.
2017-06-02 23:26:34 +02:00
|
|
|
@cd ./lib/aws && $(MAKE)
|
|
|
|
|
|
|
|
.PHONY: verify
|
|
|
|
verify:
|
|
|
|
@cd ./lib/aws && $(MAKE) verify
|
2016-11-15 20:30:34 +01:00
|
|
|
|