From ab801a35971cb4f908c3c414e8cb07f8bb2e9add Mon Sep 17 00:00:00 2001 From: Jan Alexander Steffens Date: Fri, 20 Jun 2025 17:08:56 +0200 Subject: [PATCH] Makefile: Build robots2policy (#699) * Makefile: Build robots2policy * Update metadata check-spelling run (pull_request) for build-robots2policy Signed-off-by: check-spelling-bot on-behalf-of: @check-spelling --------- Signed-off-by: check-spelling-bot Co-authored-by: Jason Cameron --- .github/actions/spelling/expect.txt | 3 ++- Makefile | 2 ++ docs/docs/developer/building-anubis.md | 6 ++++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index 01d1a6e..324bfdc 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -183,7 +183,6 @@ NONINFRINGEMENT nosleep OCOB ogtags -ogtitle omgili omgilibot openai @@ -218,6 +217,7 @@ rawler rcvar redir redirectscheme +refactors relayd reputational reqmeta @@ -261,6 +261,7 @@ techarohq templ templruntime testarea +Thancred thoth thothmock Tik diff --git a/Makefile b/Makefile index 62a57bb..534ae5b 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ assets: deps build: assets $(GO) build -o ./var/anubis ./cmd/anubis + $(GO) build -o ./var/robots2policy ./cmd/robots2policy @echo "Anubis is now built to ./var/anubis" lint: assets @@ -27,6 +28,7 @@ lint: assets prebaked-build: $(GO) build -o ./var/anubis -ldflags "-X 'github.com/TecharoHQ/anubis.Version=$(VERSION)'" ./cmd/anubis + $(GO) build -o ./var/robots2policy -ldflags "-X 'github.com/TecharoHQ/anubis.Version=$(VERSION)'" ./cmd/robots2policy test: assets $(GO) test ./... diff --git a/docs/docs/developer/building-anubis.md b/docs/docs/developer/building-anubis.md index 2a81558..63bafa4 100644 --- a/docs/docs/developer/building-anubis.md +++ b/docs/docs/developer/building-anubis.md @@ -58,7 +58,9 @@ This will build all static assets (CSS, JavaScript) for distribution. make build ``` -From this point it is up to you to make sure that `./var/anubis` ends up in the right place. You may want to consult the `./run` folder for useful files such as a systemd unit and `anubis.env.default` file. +From this point it is up to you to make sure that `./var/anubis` and `./var/robots2policy` end up in +the right place. You may want to consult the `./run` folder for useful files such as a systemd unit +and `anubis.env.default` file. ## "Pre-baked" tarball @@ -75,7 +77,7 @@ When using this tarball, all you need to do is build `./cmd/anubis`: make prebaked-build ``` -Anubis will be built to `./var/anubis`. +Anubis will be built to `./var/anubis` and the robots2policy tool to `./var/robots2policy`. ## Development dependencies