aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRuben Beltran del Rio <jj@r.bdr.sh>2026-07-03 15:21:56 +0200
committerRuben Beltran del Rio <jj@r.bdr.sh>2026-07-03 15:21:58 +0200
commit95dc66cb108a311065917362a00b86c08767303d (patch)
tree46ca65be6548224be0dd5a42bb86f2ecede14da8 /Makefile
Add source controlHEADmain
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile37
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}'