diff options
| author | 2024-03-11 10:12:06 +0000 | |
|---|---|---|
| committer | 2024-03-11 10:12:06 +0000 | |
| commit | e24efcac8b67baa9454bf27631e5e49f898a88d4 (patch) | |
| tree | d9adec2f05e1d8714edee66062a4b95a81ee2a61 /vendor/github.com/leodido/go-urn/makefile | |
| parent | [bugfix] Fix whitespace move_id issue (#2742) (diff) | |
| download | gotosocial-e24efcac8b67baa9454bf27631e5e49f898a88d4.tar.xz | |
[chore]: Bump github.com/gin-contrib/cors from 1.5.0 to 1.7.0 (#2745)
Diffstat (limited to 'vendor/github.com/leodido/go-urn/makefile')
| -rw-r--r-- | vendor/github.com/leodido/go-urn/makefile | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/vendor/github.com/leodido/go-urn/makefile b/vendor/github.com/leodido/go-urn/makefile index df87cdc6d..68d5dd0f1 100644 --- a/vendor/github.com/leodido/go-urn/makefile +++ b/vendor/github.com/leodido/go-urn/makefile @@ -15,18 +15,24 @@ clean: .PHONY: images images: docs/urn.png +.PHONY: snake2camel +snake2camel: + @cd ./tools/snake2camel; go build -o ../../snake2camel . + .PHONY: removecomments removecomments: @cd ./tools/removecomments; go build -o ../../removecomments . machine.go: machine.go.rl +machine.go: snake2camel + machine.go: removecomments machine.go: - $(RAGEL) -Z -G2 -e -o $@ $< + $(RAGEL) -Z -G1 -e -o $@ $< @./removecomments $@ - $(MAKE) -s file=$@ snake2camel + @./snake2camel $@ $(GOFMT) $@ docs/urn.dot: machine.go.rl @@ -41,13 +47,5 @@ bench: *_test.go machine.go go test -bench=. -benchmem -benchtime=5s ./... .PHONY: tests -tests: *_test.go +tests: *_test.go $(GO_TEST) ./... - -.PHONY: snake2camel -snake2camel: - @awk -i inplace '{ \ - while ( match($$0, /(.*)([a-z]+[0-9]*)_([a-zA-Z0-9])(.*)/, cap) ) \ - $$0 = cap[1] cap[2] toupper(cap[3]) cap[4]; \ - print \ - }' $(file) |
