소스 검색

Makefile: Build robots2policy (#699)

* Makefile: Build robots2policy

* Update metadata

check-spelling run (pull_request) for build-robots2policy

Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
on-behalf-of: @check-spelling <check-spelling-bot@check-spelling.dev>

---------

Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
Co-authored-by: Jason Cameron <git@jasoncameron.dev>
Jan Alexander Steffens 2 일 전
부모
커밋
ab801a3597
3개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 1
      .github/actions/spelling/expect.txt
  2. 2 0
      Makefile
  3. 4 2
      docs/docs/developer/building-anubis.md

+ 2 - 1
.github/actions/spelling/expect.txt

@@ -183,7 +183,6 @@ NONINFRINGEMENT
 nosleep
 nosleep
 OCOB
 OCOB
 ogtags
 ogtags
-ogtitle
 omgili
 omgili
 omgilibot
 omgilibot
 openai
 openai
@@ -218,6 +217,7 @@ rawler
 rcvar
 rcvar
 redir
 redir
 redirectscheme
 redirectscheme
+refactors
 relayd
 relayd
 reputational
 reputational
 reqmeta
 reqmeta
@@ -261,6 +261,7 @@ techarohq
 templ
 templ
 templruntime
 templruntime
 testarea
 testarea
+Thancred
 thoth
 thoth
 thothmock
 thothmock
 Tik
 Tik

+ 2 - 0
Makefile

@@ -18,6 +18,7 @@ assets: deps
 
 
 build: assets
 build: assets
 	$(GO) build -o ./var/anubis ./cmd/anubis
 	$(GO) build -o ./var/anubis ./cmd/anubis
+	$(GO) build -o ./var/robots2policy ./cmd/robots2policy
 	@echo "Anubis is now built to ./var/anubis"
 	@echo "Anubis is now built to ./var/anubis"
 
 
 lint: assets
 lint: assets
@@ -27,6 +28,7 @@ lint: assets
 
 
 prebaked-build:
 prebaked-build:
 	$(GO) build -o ./var/anubis -ldflags "-X 'github.com/TecharoHQ/anubis.Version=$(VERSION)'" ./cmd/anubis
 	$(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
 test: assets
 	$(GO) test ./...
 	$(GO) test ./...

+ 4 - 2
docs/docs/developer/building-anubis.md

@@ -58,7 +58,9 @@ This will build all static assets (CSS, JavaScript) for distribution.
 make build
 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
 ## "Pre-baked" tarball
 
 
@@ -75,7 +77,7 @@ When using this tarball, all you need to do is build `./cmd/anubis`:
 make prebaked-build
 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
 ## Development dependencies