diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4505ecc --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +PROJECT := git.sr.ht/~rbdr/pulumi-porkbun +PROVIDER := pulumi-resource-porkbun +VERSION ?= 1.0.0 +LDFLAGS := -X $(PROJECT)/provider.Version=$(VERSION) + +.PHONY: build +build: + go build -ldflags "$(LDFLAGS)" -o bin/$(PROVIDER) . + +.PHONY: test +test: + go test ./... + +.PHONY: lint +lint: + go vet ./... + +.PHONY: schema +schema: build + pulumi package get-schema ./bin/$(PROVIDER) > schema.json + +.PHONY: gen-sdks +gen-sdks: build + rm -rf sdk + pulumi package gen-sdk ./bin/$(PROVIDER) --language typescript,python,go --out sdk + +.PHONY: install +install: build + pulumi plugin install resource porkbun $(VERSION) --file ./bin/$(PROVIDER) --reinstall + +.PHONY: clean +clean: + rm -rf bin sdk + +.PHONY: help +help: + @grep -E '^[a-zA-Z_-]+:.*## ' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*## "}; {printf "%-10s %s\n", $$1, $$2}' |