-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (42 loc) · 1.73 KB
/
Copy pathMakefile
File metadata and controls
55 lines (42 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.PHONY: build test codegen run clean test-compat docker-build docker-run changelog stats docs-serve docs-build
build:
go build -o dist/devcloud ./cmd/devcloud
go build -o dist/codegen ./cmd/codegen
test:
CGO_ENABLED=0 go test ./... -v
test-compat:
cd tests/compatibility && pip install -q -r requirements.txt && pytest -v
codegen:
go run ./cmd/codegen -models ./smithy-models -output ./internal/generated -templates ./internal/codegen/templates -scaffold-output ./internal/services
codegen-s3:
go run ./cmd/codegen -models ./smithy-models -output ./internal/generated -services s3 -templates ./internal/codegen/templates
run:
go run ./cmd/devcloud
docker-build:
docker build -f docker/Dockerfile -t devcloud/devcloud .
docker-run:
docker run -p 4747:4747 -v $(PWD)/data:/app/data devcloud/devcloud
# Serves docs/ as the site published to skyoo2003.github.io/devcloud.
# Requires the extended edition (the theme compiles SCSS) and the theme
# submodule: git submodule update --init
docs-serve:
hugo server --buildDrafts
# What .github/workflows/pages.yml runs. The link check is not optional: the
# render hook resolves unknown links to GitHub URLs instead of failing, so a
# renamed page breaks quietly without it.
docs-build:
hugo --gc --minify
./scripts/check-site-links.py
clean:
rm -rf dist/ data/ public/ resources/
changelog:
@if [ -z "$(VERSION)" ]; then \
echo "VERSION is required. Usage: make changelog VERSION=v0.2.0"; \
exit 1; \
fi
@changie batch $(VERSION) && changie merge
stats:
@svcs=$$(grep -rho 'DefaultRegistry.Register(' internal/services | wc -l | tr -d ' '); \
ops=$$(grep -r 'case "' internal/services/*/provider.go 2>/dev/null | wc -l | tr -d ' '); \
echo "Services: $$svcs"; \
echo "Operations: $$ops"